Command help
#4

Example

pawn Код:
command(kill, playerid, params[])
{
    new id;
    if (sscanf(params,"r", id))
    {
        return SendClientMessage(playerid, -1, "* USAGE: /kill [Nick/ID]");
    }
    SetPlayerHealth(id, -1);
    return 1;
}
And you can use ID or Name
Reply


Messages In This Thread
Command help - by Wesley221 - 27.06.2011, 18:00
Re: Command help - by Raimis_R - 27.06.2011, 18:04
Re: Command help - by Wesley221 - 27.06.2011, 18:18
Re: Command help - by Raimis_R - 27.06.2011, 18:28
Re: Command help - by Wesley221 - 27.06.2011, 18:29
Re: Command help - by Raimis_R - 27.06.2011, 18:47
Re: Command help - by Markx - 27.06.2011, 18:54
Re: Command help - by Wesley221 - 27.06.2011, 18:58

Forum Jump:


Users browsing this thread: 3 Guest(s)