help me guys
#4

PHP код:
new killtimer[MAX_PLAYERS];
CMD:kill(playerid

    
SendClientMessage(playerid0xFF0000FF"wait 10 seconds to suicide"); 
    
killtimer[playerid] = SetTimerEx("killhim"10000false"i"playerid); 
    return 
1


forward killhim(playerid); 

public 
killhim(playerid

    
SetPlayerHealth(playerid0.0); 
}  
//Onplayerdisconnect
KillTimer(killtimer); 
you have make it like this what if that player disconnects the server in timeout or something so that timer get kill otherwise the next player will join with that id will get killed as he spawns.
Reply


Messages In This Thread
help me guys - by GameOvr - 17.06.2018, 17:20
Re: help me guys - by Lokii - 17.06.2018, 17:28
Re: help me guys - by GameOvr - 17.06.2018, 17:39
Re: help me guys - by CaptainBoi - 17.06.2018, 18:05
Re: help me guys - by TheBeastKhan - 17.06.2018, 18:53
Re: help me guys - by Lucases - 17.06.2018, 22:30

Forum Jump:


Users browsing this thread: 3 Guest(s)