12.06.2014, 21:37
maybe like this?
pawn Код:
CMD:sfmembers(playerid,params[])
{
new Count=0,n[MAX_PLAYER_NAME],string[128],AdmRank[40];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sFLevel] > 0 && IsPlayerConnected(i))
{
switch(PlayerInfo[i][sFLevel])
{
case 1:
{
AdmRank = "Newest Member";
}
case 2:
{
AdmRank = "Junior Member";
}
case 3:
{
AdmRank = "Executive Member";
}
case 4:
{
AdmRank = "Senior Member";
}
case 5:
{
AdmRank = "Head Member";
}
case 6:
{
AdmRank = "Lieutenant";
}
case 7:
{
AdmRank = "General";
}
case 8:
{
AdmRank = "Leader";
}
}
GetPlayerName(i,n,sizeof(n));
if(PlayerInfo[i][sFLevel] == 8)format(string, 128, "{FF0000}Rank: %d - %s (Id:%i) | %s |", PlayerInfo[i][sFLevel], n, i, AdmRank);
else format(string, 128, "{FFFFFF}Rank: %d - %s (Id:%i) | %s |", PlayerInfo[i][sFLevel], n, i, AdmRank);
ShowPlayerDialog(playerid, 901, DIALOG_STYLE_MSGBOX, "{FF0000}SFTDM - StreetFighters", string, "OK","");
Count++;
}
}