Help command
#4

You can't just give a script like that Humza, pInfo[playerid][pLevel] will have to be changed, SendClientMessageToAll(blue,string); will have to be changed and such.

This is a very simple command made with foreach and zcmd.
pawn Код:
CMD:giveallweapon(playerid, params[])
{
    new weapon, ammo;
    if(sscanf(params, "ii", weapon, ammo)) return SendClientMessage(playerid, -1, "USAGE: /giveallweapon [weapon id] [ammo]");
    foreach(Player, i)
    {
        GivePlayerWeapon(i, weapon, ammo);
    }
    return 1;
}
It's very simple.
Use IsPlayerAdmin to check if player is RCON admin, and you can limit it to RCON admins only.
Reply


Messages In This Thread
Help command - by Fica22 - 30.01.2015, 13:44
Re: Help command - by HydraHumza - 30.01.2015, 13:47
Re: Help command - by HY - 30.01.2015, 13:55
Re: Help command - by CalvinC - 30.01.2015, 13:56
Re: Help command - by HydraHumza - 30.01.2015, 14:59
Re: Help command - by Fica22 - 01.02.2015, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)