pawn Код:
if (strcmp(cmd, "/givegunall", true)==0)
{
if (PlayerInfo[playerid][pLCAdmin] >= 12000)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFAA, "USO: /givegunall [weapon]");
return 1;
}
new w = strval(tmp);
for (new i=0;i<MAX_PLAYERS;i++)if(IsPlayerConnected(i))
GivePlayerWeaponEx(i,w,10000);
}
return 1;
}