11.07.2011, 23:16
You do not know how annoyed I am at this. I've tried everything to sort this out and nothing has worked.
basically when the player dies the timer is not stopping. Please check the code and tell me how to fix this!
And the timers that are defined
basically when the player dies the timer is not stopping. Please check the code and tell me how to fix this!
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(playerid,"~w~Wasted",3000,2);
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[playerid][Dead] = 1;
KillTimer(killwepdep);
KillTimer(killbank);
KillTimer(killhospital);
return 1;
}
pawn Код:
killwepdep = SetTimerEx("WepDep", 300000, false,"i",playerid);//It's the same for the other 2