Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: theway on February 18, 2011, 08:27:04 am

Title: about settimer
Post by: theway on February 18, 2011, 08:27:04 am

how can i ?
3 seconds after the first send a message to the players, then 3 seconds later to give the player to fill the blood, and so on?

Settimer? 
Title: Re: about settimer
Post by: BIG[H] on February 18, 2011, 10:12:58 am
3 Second time is Example:


Quote
Pubic blah()
{
SendClientMessageToAll(COLOR_GREEN,"Here your message");
}

at gamemodeinit
add
SetTimer("blah",3000,1); // 3000 is = 3 secs and 1 is Blood ture false to loop this timer after 3 secs
Title: Re: about settimer
Post by: theway on February 18, 2011, 11:11:04 am
and after heal player,  what should ? 
Title: Re: about settimer
Post by: BIG[H] on February 18, 2011, 12:49:28 pm
healing Player? auto heal in 3 seconds? ??? ???
Title: Re: about settimer
Post by: theway on February 18, 2011, 03:53:04 pm
yes,  I want ,    I would like 3 seconds to all players plus blood, and then another 3 seconds to all players plus armor, a few seconds to set the time to 12 how about this?
Title: Re: about settimer
Post by: Charleyutton on February 21, 2011, 03:01:37 pm
The best way is to make a couple of custom functions. Start with HealAll, then ArmourAll or something. You need to call a loop round all the players ingame, setting their hp and armour respectively. Then, if it is under a command you just need to set 2 timers.

So something like
Code: [Select]
GameTextForAll("Healing in 3 seconds, boosting armour in 6.");
SetTimer("HealAll", 3000, 1);
SetTimer("AmourAll", 6000, 1);