19.02.2014, 14:56
Hello Dear Samp Members,
So my problem is when a player dies it dosent kill the timer when the timer anti team kill is still working for exsample
i spawn i get a 10 seconds anti spawn kill then i do /reclass quickly and the old timer dosent die and i get double times the ammo i need to get
here is my code
here is the timer itself that i am calling
So my problem is when a player dies it dosent kill the timer when the timer anti team kill is still working for exsample
i spawn i get a 10 seconds anti spawn kill then i do /reclass quickly and the old timer dosent die and i get double times the ammo i need to get
here is my code
pawn Код:
CMD:reclass(playerid,params[])
{
SetPlayerHealth(playerid,0);
Assault[playerid] =0;
Sniper[playerid] =0;
Engineer[playerid] =0;
Pilot[playerid] =0;
Gunner[playerid] =0;
onduty[playerid] =0;
FirstSpawn[playerid] =0;
KillTimer(EndSpawn(playerid));
SendClientMessage(playerid,COLOR_ORANGE,"You are now sent to class selection");
return 1;
}
here is the timer itself that i am calling
pawn Код:
else if(FirstSpawn[playerid] == 1)
{
SetTimerEx("EndSpawn", 10000, false, "i", playerid);
SendClientMessage(playerid,COLOR_RED,"[DarkyBot]You have 10 seconds anti spawn kill");
}