avoid death
#1

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?
Reply
#2

You can make this. Just check the leaving player's health, and send a message if it's lower than, 10 for example. S This is what the code would look like, sort of.
pawn Код:
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;
}
Try to play around with the functions I've used in the code above, and I'm sure you will able to do it just fine.
Reply
#3

Thank you bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)