08.02.2009, 11:31
Quote:
|
Originally Posted by Celson
Comon does anybody have any suggestions, or does anybody know how I could do it with a timer?
|
try to make it like this :
Код:
if(IsPlayerConnected(pid))
{
new Float:Health;
new Float:Health2;
GetPlayerHealth(pid,Health);
format(message,128,"Current HP: %f",Health);
SendClientMessage(playerid,COLOR_YELLOW,message);
SetPlayerHealth(pid,Health-2);
if(wait(1000)){
GetPlayerHealth(pid,Health2);
format(message2,128,"New HP: %f",Health2);
SendClientMessage(playerid,COLOR_YELLOW,message2);
}
return 1;
}

