/armorall and /healall
#8

CMD:healall(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
CMDMessageToAdmins(playerid,"HEALALL");
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel]) {
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerHealth(i,100.0);
}
}
new string[128]; format(string,sizeof(string),"Administrator \"%s\" has healed all players", pName(playerid) );
return SendClientMessageToAll(blue, string);
} else return SendClientMessage(playerid,red,"ERROR: You need to be level 3 to use this command");
}

CMD:armourall(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
CMDMessageToAdmins(playerid,"ARMOURALL");
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel]) {
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerArmour(i,100.0);
}
}
new string[128]; format(string,sizeof(string),"Administrator \"%s\" has restored all players armour", pName(playerid) );
return SendClientMessageToAll(blue, string);
} else return SendClientMessage(playerid,red,"ERROR: You need to be level 3 to use this command");
}
Reply


Messages In This Thread
/armorall and /healall - by imnoob - 04.06.2012, 14:47
Re: /armorall and /healall - by dannyk0ed - 04.06.2012, 14:49
Re: /armorall and /healall - by doreto - 04.06.2012, 14:50
AW: /armorall and /healall - by Drebin - 04.06.2012, 14:51
Re: AW: /armorall and /healall - by dannyk0ed - 04.06.2012, 14:52
Re: AW: /armorall and /healall - by imnoob - 04.06.2012, 20:00
Re: AW: /armorall and /healall - by DaRealShazz - 04.06.2012, 20:08
Re: /armorall and /healall - by AbO.SbRe - 04.06.2012, 20:13
Re: /armorall and /healall - by FalconX - 04.06.2012, 20:17
Re: /armorall and /healall - by SuperViper - 04.06.2012, 20:23

Forum Jump:


Users browsing this thread: 2 Guest(s)