27.04.2013, 07:16
i need help with avoid death now if player its fight and dont have HP and Leave from game when he is fight System Give Msg %s quirt game in avoid death. who can make this?
public OnPlayerDisconnect(playerid,reason)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health < 10)
{
new string[128],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,128,"%s has quit the game to avoid death. Same on you!",pName);
SendClientMessageToAll(-1,string);
}
return 1;
}