#4

Example command.

pawn Код:
CMD:kill(playerid, params[]) {
    new Float:hp;
    GetPlayerHealth(playerid, hp);
    if(GetPVarInt(playerid, #DM_Arena) == 1) return SCM(playerid, -1, # >> Commands are unusable at this time.);
    if(hp >= 50)
    {
        DeletePVar(playerid, #HackOn);
        SetPlayerHealthEx(playerid, 0);
    }
    else return SCM(playerid, C_WHITE, #ERROR: You can not kill yourself with 50 health or less.);
    return true;
}
Reply


Messages In This Thread
help - by RuNBoY - 06.07.2015, 19:42
Re: help - by Lynn - 06.07.2015, 19:46
Re: help - by RuNBoY - 06.07.2015, 19:49
Re: help - by Lynn - 06.07.2015, 19:51
Re: help - by RuNBoY - 06.07.2015, 19:56
Re: help - by RuNBoY - 06.07.2015, 20:20
Re: help - by Lynn - 06.07.2015, 20:21
Re: help - by RuNBoY - 06.07.2015, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)