Author Topic: armourall command xD //(pawno)//  (Read 2134 times)

0 Members and 1 Guest are viewing this topic.

Offline A7Xsniper

  • Street Thug
  • *
  • Posts: 20
    • View Profile
armourall command xD //(pawno)//
« on: April 26, 2011, 07:40:07 pm »
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 :D
« Last Edit: April 26, 2011, 11:07:08 pm by A7Xsniper »

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: armourall command xD //(pawno)//
« Reply #1 on: April 27, 2011, 05:44:16 am »
You Should Post This Script in Showroom
Outdoor city server Administrator, FS server owner!