05.07.2013, 18:41
Como eu ponho pra admins 1340 + nгo aparecer no /socios
Код:
if (strcmp(cmd, "/socios", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COR_GRO, "Sуcios Online:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pSocio] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "Sуcio: %s[Socio Bronze]", sendername); SendClientMessage(playerid, COR_SOCIOB, string); } else if(PlayerInfo[i][pSocio] == 2) { GetPlayerName(i,sendername,sizeof(sendername)); format(string,256, "Sуcio: %s[Socio Prata]",sendername); SendClientMessage(playerid, COR_SOCIOP, string); } else if(PlayerInfo[i][pSocio] == 3) { GetPlayerName(i,sendername,sizeof(sendername)); format(string,256, "Sуcio: %s[Socio Ouro]",sendername); SendClientMessage(playerid, COR_SOCIOO, string); } else if(PlayerInfo[i][pSocio] == 4) { GetPlayerName(i,sendername,sizeof(sendername)); format(string,256, "Sуcio: %s[Socio Diamante]",sendername); SendClientMessage(playerid, COR_SOCIOD, string); } } } } return 1; }