heal/armour all
#3

PHP код:
CMD:armourall(playerid,params[])
{
    if(
Player[playerid][pAdmin] >= 3)
    {
    new 
string[128];
    
format(string,sizeof(string),"Administrator %s Restore All Players Armour ",GetName(playerid));
      
SendClientMessageToAll(COLOR_ORANGEstring);
    for(new 
0MAX_PLAYERSi++)
    {
    
SetPlayerArmour(i,99);
    }
    }
    else
     {
     
SendClientMessage(playeridCOLOR_KRED"You need level 3 admin to use this cmd!");
      }
      return 
1;
}
CMD:healall(playerid,params[])
{
    if(
Player[playerid][pAdmin] >= 3)
    {
    new 
string[128];
    
format(string,sizeof(string),"Administrator %s Restores All Players Health ",GetName(playerid));
      
SendClientMessageToAll(COLOR_ORANGEstring);
    for(new 
0MAX_PLAYERSi++)
    {
    
SetPlayerHealth(i,99);
    }
    }
    else
     {
     
SendClientMessage(playeridCOLOR_KRED"You need level 3 admin to use this cmd!");
      }
      return 
1;

try this it working fine for me between why you want not to heal playerid and also not heal higher admins ?
Reply


Messages In This Thread
heal/armour all - by Jese - 02.02.2014, 19:06
Re: heal/armour all - by GShock - 22.03.2014, 08:53
Re: heal/armour all - by MBilal - 22.03.2014, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)