Author Topic: about settimer  (Read 3104 times)

0 Members and 1 Guest are viewing this topic.

Offline theway

  • Street Thug
  • *
  • Posts: 20
    • View Profile
about settimer
« 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? 

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: about settimer
« Reply #1 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
Outdoor city server Administrator, FS server owner!

Offline theway

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: about settimer
« Reply #2 on: February 18, 2011, 11:11:04 am »
and after heal player,  what should ? 

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: about settimer
« Reply #3 on: February 18, 2011, 12:49:28 pm »
healing Player? auto heal in 3 seconds? ??? ???
Outdoor city server Administrator, FS server owner!

Offline theway

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: about settimer
« Reply #4 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?

Offline Charleyutton

  • Street Thug
  • *
  • Posts: 46
    • View Profile
Re: about settimer
« Reply #5 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);
Charleyutton, VU clan leader, XE Management/Scripter, SvM Server Owner, VCHA admin http://vu.vrocker-hosting.co.uk http://svm.vrocker-hosting.co.uk


Click the image to make your own XE signature!