10.05.2018, 01:13
hello guys, im trying to make a command that when you receive 1 point of damage Stop SetTimerEx, can someone help me ??
Код:
CMD:class(playerid,params[])
{
new STOP[MAX_PLAYERS];
new Float:health;
GetPlayerHealth(playerid, health);
STOP[playerid]= SetTimerEx("ClassSelection", 10000, false, "i", playerid);
SendClientMessage(playerid, 0xFF0000FF,"Change of class in 10 seconds");
if( health < health-1) <-------- // I dont know if this right??
{
KillTimer(STOP[playerid]);
SendClientMessage(playerid, 0xFF0000FF,"You have received damages, change of class canceled");
return 1;
}
else
{
}


