16.05.2011, 02:08
pawn Код:
if(!strcmp(cmdtext, "/bopes", true))
{
SendClientMessage(playerid, COLOR_RED, "|_____ POLICIAIS DO BOPE ______|");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(logged[i] == 1)
{
if(PlayerInfo[i][pBOPE] >= 1)
{
new cargo[20];
if(PlayerInfo[playerid][pBOPE] == 1) { cargo = "Soldado"); }
else if(PlayerInfo[playerid][pBOPE] == 2) { cargo = "Sargento"); }
else if(PlayerInfo[playerid][pBOPE] == 3) { cargo = "Major"); }
else if(PlayerInfo[playerid][pBOPE] == 4) { cargo = "Capitгo"); }
else if(PlayerInfo[playerid][pBOPE] == 5) { cargo = "Ten.Coronel"); }
else if(PlayerInfo[playerid][pBOPE] == 6) { cargo = "Comandante"); }
new str[256];
new pname[24];
GetPlayerName(i, pname, 24);
format(str, 256, "%s - %s",cargo, pname );
SendClientMessage(playerid, COLOR_CYAN, str);
count++;
}
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_CYAN, "Nгo tem nenhum BOPE on-line agora!");
}
return 1;
}