22.03.2014, 11:53
pawn Код:
giveallweapon(playerid, params[])
{
new string[128];
new Wepid;
new Ammo;
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(sscanf(params, "ii", Wepid,Ammo)) return SendClientMessage(playerid, -1,"{FF0099}[ADMIN]{FFFFFF}/giveallweapon [Wepid] [Ammo]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) return 1;
GivePlayerWeapon(i, Wepid, Ammo);
}
format(string,sizeof(string),"{FF0099}[ADMIN]{FFFFFF}Everyone has been given a %s!",aWeaponNames[Wepid],Ammo);
SendClientMessageToAll(COLOR_ADMIN,string);
return 1;
}