/healall
Лечит всех игроков на сервере
Код
if (strcmp("/healall", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && (i != playerid)) {
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerHealth(i,100.0);
}
new string[128],pname[MAX_PLAYER_NAME]; format(string,sizeof(string),"%s вылечил всех игроков", pname);
return SendClientMessageToAll(0x00FF00AA, string);
}
return 1;
}
/armourall
Выдает всем игрокам 100% брони
Код
if (strcmp("/armourall", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && (i != playerid)) {
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerArmour(i,100.0);
}
new string[128],pname[MAX_PLAYER_NAME]; format(string,sizeof(string),"%s выдал всем броню", pname);
return SendClientMessageToAll(0x00FF00AA, string);
}
return 1;
}
--------
Автор: [S]ilverbac[k]