18.08.2012, 08:02
Hello,
I wanna make a system that your health lowers evrey 5 minutes.
But how ive made it right now it gives the player unlimited health....
I wanna make a system that your health lowers evrey 5 minutes.
But how ive made it right now it gives the player unlimited health....
pawn Код:
forward LowerHealth(playerid);
new stock LowerHealthTimer;
public OnGameModeInit()
{
LowerHealthTimer = SetTimer("LowerHealth", 300000, true);
return 1;
}
public LowerHealth(playerid)
{
GetPlayerHealth(playerid, Player[playerid][Health]);
Player[playerid][Health] -= 2;
SetPlayerHealth(playerid, Player[playerid][Health]);
return 1;
}