Command with a define
#8

pawn Код:
command(setkills, playerid, params[])
{
    new amount;
    if( sscanf( params, "u", amount ) )
    {
        SendClientMessage(playerid, WHITE, "SYNTAX: /setkills [amount]");
    }
    else
    {
        if (IsPlayerAdmin(playerid))
        {
            Kills = amount;
        }
    }
    return 1;
}
idk if it will work. Just an example
Reply


Messages In This Thread
Command with a define - by RedFusion - 12.11.2010, 23:29
Re: Command with a define - by Retardedwolf - 12.11.2010, 23:33
Re: Command with a define - by RedFusion - 12.11.2010, 23:38
Re: Command with a define - by Retardedwolf - 12.11.2010, 23:49
Re: Command with a define - by iggy1 - 12.11.2010, 23:53
Re: Command with a define - by RedFusion - 13.11.2010, 01:07
Re: Command with a define - by Retardedwolf - 13.11.2010, 01:13
Re: Command with a define - by Hal - 13.11.2010, 01:16
Re: Command with a define - by Hal - 13.11.2010, 01:20

Forum Jump:


Users browsing this thread: 1 Guest(s)