Vice City Multiplayer
May 21, 2019, 03:56:46 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: LC:MP 0.3z Released! http://forum.vicecitymultiplayer.com/index.php?topic=251.0
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: armourall command xD //(pawno)//  (Read 727 times)
0 Members and 1 Guest are viewing this topic.
A7Xsniper
Street Thug
*
Offline Offline

Posts: 14



View Profile
« on: April 26, 2011, 05: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 Cheesy
« Last Edit: April 26, 2011, 09:07:08 pm by A7Xsniper » Logged
BIG[H]
Made Man
***
Offline Offline

Posts: 198

(Pawn / Squirrel) Scripter.


View Profile
« Reply #1 on: April 27, 2011, 03:44:16 am »

You Should Post This Script in Showroom
Logged

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!