• Welcome to Vice City Multiplayer.
 

about settimer

Started by theway, February 18, 2011, 06:27:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theway


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? 

BIG[H]

3 Second time is Example:


QuotePubic 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
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

theway

and after heal player,  what should ? 

BIG[H]

healing Player? auto heal in 3 seconds? ??? ???
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

theway

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?

Charleyutton

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

GameTextForAll("Healing in 3 seconds, boosting armour in 6.");
SetTimer("HealAll", 3000, 1);
SetTimer("AmourAll", 6000, 1);
Charleyutton, VU clan leader, VCDC co-creator, SvM Server Owner, Squirrel Scripter. http://vu.vrocker-hosting.co.uk http://svm.vrocker-hosting.co.uk XE Scripter