22.03.2014, 10:29
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_ORANGE, string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerArmour(i,99);
}
}
else
{
SendClientMessage(playerid, COLOR_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_ORANGE, string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerHealth(i,99);
}
}
else
{
SendClientMessage(playerid, COLOR_KRED, "You need level 3 admin to use this cmd!");
}
return 1;
}