Question about Timers
#1

I want to know how to make when someone die to make timer
where it take him every 1 min -3 hp
Reply
#2

Under "OnPlayerDeath(playerid, killerid, reason)"
pawn Код:
SetTimerEx("namehere", 60000, true, "i", playerid); // You can replace "namehere" to anything you want.
Then you setup what the timer does, by doing this:
pawn Код:
forward namehere(playerid); // If you changed "namehere", change it here too.
public namehere(playerid) // And here
{
    SetPlayerHealth(playerid, -3);
    return 1;
}
I used to have something similar to this, and this is what I did, and it worked fine for me. If this is wrong, anyone, please feel free to correct me, but it should be right, as this is what I used, till I removed this feature.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)