aqui les dejo el comando para dar armour a todos XD
here I leave the command to armor all xD
}
else if (strcmp(cmd, "armourall", true) == 0) {
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"armourall")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else {
new plr,string[256], szMsg[256];
format(szMsg,sizeof(szMsg),"free armour",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_LIGHTBLUE,szMsg);
format(string,256,"~b~armour all!",cmdtext[3]);
GameTextForAll(string);
armourAll();
}
return 1;and
stock armourAll()
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) == 1) SetPlayerArmour(i,100.0);
}
}:O