08.06.2016, 11:03
Код:
CMD:getallhg(playerid) { if(PlayerInfo[playerid][HGRank] >= 7) { CMDMessageToAdmins(playerid,"GETAllHG"); new Float:x, Float:y, Float:z, interior = GetPlayerInterior(playerid); GetPlayerPos(playerid, x, y, z); for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel]) { if (PlayerInfo[i][HGRank] > 0) { PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); SetPlayerPos(i, x+(playerid/4)+1, y+(playerid/4), z); SetPlayerInterior(i, interior); } } } new string[128]; format(string,sizeof(string),"HG Leader \"%s\" has teleported all HG Members", pName(playerid) ); return MessageToHG(blue, string); } else SendClientMessage(playerid,red,"ERROR: You need to be HG Member Rank 7 to use this command"); return 1; }