21.04.2012, 22:47
pawn Код:
CMD:lideres(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COR_DARK, "::_________| LIDERES ONLINE |_________::");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][Membro] == 1)
{
if(Player[i][Cargo] == 6)
{
GetPlayerName(i, nome, sizeof(nome));
format(stringes, 256, "Policia Militar: %s FONE: 4242", nome);
SendClientMessage(playerid, PM_COR, stringes);
}
}
if(Player[i][Membro] == 2)
{
if(Player[i][Cargo] == 6)
{
GetPlayerName(i, nome, sizeof(nome));
format(stringes, 256, "Drifters: %s FONE: 4242", nome);
SendClientMessage(playerid, DRIFTERS_COR, stringes);
}
}
}
}
}
return 1;
}