03.08.2013, 04:51
Cara tinha nada para fazer, porйm fiz este comando aqui agora se quiser usa-lo e aperfeiзoa-lo fica ao seu critйrio.
Man had nothing to do but did this command here now if you want to use it and perfect it is at your discretion.
[ ****** Tradutor Owna ;p ]
Man had nothing to do but did this command here now if you want to use it and perfect it is at your discretion.
[ ****** Tradutor Owna ;p ]
pawn Код:
if(strcmp(cmd,"/admins", true) == 0)
{
new string[258];
if(preso[playerid] == 0)
{
SendClientMessage(playerid, 0x7A7A7AAA, "• [BGL] Administradores e Moderadores Conectados •");
new aname[MAX_PLAYER_NAME];
new countADM[playerid] = 0;
new countMOD[playerid] = 0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][Admin] == 1)
{
GetPlayerName(i,aname,sizeof(aname));
format(string,sizeof(string),"%s {008000}[ Moderador ]", aname);
SendClientMessage(playerid, -1, string);
countMOD[playerid]++;
}
else if(PlayerInfo[i][Admin] == 2)
{
GetPlayerName(i,aname,sizeof(aname));
format(string,sizeof(string),"%s {FF0000}[ Administrador ]", aname);
SendClientMessage(playerid, -1, string);
countADM[playerid]++;
}
else if(PlayerInfo[i][Admin] == 3)
{
GetPlayerName(i,aname,sizeof(aname));
format(string,sizeof(string),"%s {FF0000}[ Administrador ]", aname);
SendClientMessage(playerid, -1, string);
countADM[playerid]++;
}
}
}
if(countMOD[playerid] == 0)
{
SendClientMessage(playerid, -1, "[ BGL ] {FF0000}Nenhum Moderador online no momento.");
}
if(countADM[playerid] == 0)
{
SendClientMessage(playerid, -1, "[ BGL ] {FF0000}Nenhum Administrador online no momento.");
}
}
else
{
SendClientMessage(playerid,-1,"[ ERRO ] {FF0000}Vocк nгo pode usar comandos estando preso.");
}
return 1;
}