Weird command fail (again...)
#3

Try this out

pawn Код:
dcmd_akill(playerid, params[])
{
    new Player2, string[128];
    if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[AKILL])
    {
        if (sscanf(params, "u", Player2)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /akill [playerid]");
        if (Player2 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ORANGE, "Player not Connected");
        SendClientMessage(Player2, COLOR_RED, "You have been killed by an admin");
        SetPlayerHealth(Player2, 0);
    }
    else format(string, sizeof(string), "You must be a level %d administrator to use that command!", gCommands[AKILL]);
    SendClientMessage(playerid, COLOR_ORANGE, string);
    return 1;
}
Reply


Messages In This Thread
Weird command fail (again...) - by Wesley221 - 21.05.2011, 19:27
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 08:25
Re: Weird command fail (again...) - by xir - 22.05.2011, 09:22
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 09:26
Re: Weird command fail (again...) - by xir - 22.05.2011, 09:27
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 09:29
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 16:35
Re: Weird command fail (again...) - by xir - 22.05.2011, 17:55
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 17:56
Re: Weird command fail (again...) - by Wesley221 - 23.05.2011, 10:34

Forum Jump:


Users browsing this thread: 2 Guest(s)