31.07.2017, 06:02
Hello,after death showing me spawn button..So i did simple timer into OnPlayerDeath but when i die it spawn me 2 times...I dont know why.
//public
Please help me ..
PHP код:
//OnPlayerDeath
SetSpawnInfo(playerid,0,0,1109.2490,-1796.0345,16.5938,3.2391,0,0,0,0,0,0);
SetTimerEx("delayspawn",3000,false,"i",playerid);
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1);
PHP код:
public delayspawn(playerid)
{
SpawnPlayer(playerid);
SetPlayerHealth(playerid,100);
return 1;
}