Doesn't work.
I think somethink like this:
[pawn]new timer;
public OnPlayerSpawn(playerid,classid,teamid)
{
timer = SetTimer("OnPlayerDrop",10,1);
return 1;
}
forward OnPlayerDrop(playerid);
public OnPlayerDrop(playerid)
{
new Float:hp; GetPlayerHealth(playerid,hp);
if(hp < 1)
{
ResetPlayerWeapons(playerid);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
KillTimer(timer);
return 1;
}
[/pawn]
but it's bugs when I choose player.