error when pawning.... with IfPlayerAdmin
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/kill",cmdtext,true))
    {
        SetPlayerHealth(playerid, -10);
        return 1;
    }
    if(!strcmp("/heal", cmdtext, true))
    {
        if(!IsPlayerAdmin(playerid)) return 0;
        {
            SetPlayerHealth(playerid, 100);
            return 1;
        }
    }
    return 0;
}
It's not that hard

Remember: To kill a player, always set health lower than 0, because it would just stand there with no health left, unable to do anything.
Reply


Messages In This Thread
error when pawning.... with IfPlayerAdmin - by michael_dark_1 - 29.10.2011, 17:39
Re: error when pawning.... with IfPlayerAdmin - by .:Kaos:. - 29.10.2011, 17:48
Re: error when pawning.... with IfPlayerAdmin - by LZLo - 29.10.2011, 17:48
Re: error when pawning.... with IfPlayerAdmin - by michael_dark_1 - 29.10.2011, 17:51
Re: error when pawning.... with IfPlayerAdmin - by .:Kaos:. - 29.10.2011, 17:55
Re: error when pawning.... with IfPlayerAdmin - by Jochemd - 29.10.2011, 18:01
Re: error when pawning.... with IfPlayerAdmin - by michael_dark_1 - 29.10.2011, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)