30.01.2015, 13:56
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.
It's very simple.
Use IsPlayerAdmin to check if player is RCON admin, and you can limit it to RCON admins only.
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;
}
Use IsPlayerAdmin to check if player is RCON admin, and you can limit it to RCON admins only.