• Welcome to Vice City Multiplayer.
 

armourall command xD //(pawno)//

Started by A7Xsniper, April 26, 2011, 05:40:07 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

A7Xsniper

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

BIG[H]

You Should Post This Script in Showroom
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL