[Ajuda] admins on - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] admins on (
/showthread.php?tid=612348)
admins on -
best95 - 16.07.2016
nгo ta apareзendo os admins on so apareзe dizendo que nгo tem ngm on
codigo
pawn Код:
command(admins, playerid, params[])
{
if(Preso[playerid] == true) return SendClientMessage(playerid, Vermelho, "[ x ] Vocк estб preso e nгo pode usar esse comando!");
if(AFK[playerid] == true) return SendClientMessage(playerid, Vermelho, "[ x ] Vocк estб ausente e nгo pode usar esse comando!");
new xPT = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 3)
{
SendClientMessage(playerid, Snow,"Membros da Staff online:");
format(dstring,sizeof(dstring),"{B22222}%s{FFFFFF} %s (%i)", AdminTexto(i), Nome(i), i);
SendClientMessage(playerid, -1, dstring);
xPT++;
}
if(xPT == 0)
return SendClientMessage(playerid, Snow, "Nenhum Membro da Staff online!");
}
return true;
}
Re: admins on - Whoo - 16.07.2016
para aparecer tem que ser admin maior ou igual a 3..
testa
PHP код:
command(admins, playerid, params[]){
if(Preso[playerid] == true) return SendClientMessage(playerid, Vermelho, "[ x ] Vocк estб preso e nгo pode usar esse comando!");
if(AFK[playerid] == true) return SendClientMessage(playerid, Vermelho, "[ x ] Vocк estб ausente e nгo pode usar esse comando!");
new xPT = 0;
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 3){
SendClientMessage(playerid, Snow,"Membros da Staff online:");
format(dstring,sizeof(dstring),"{B22222}%s{FFFFFF} %s (%i)", AdminTexto(i), Nome(i), i);
SendClientMessage(playerid, -1, dstring);
xPT++;
}
}
if(xPT == 0)
return SendClientMessage(playerid, Snow, "Nenhum Membro da Staff online!");
return true;
}
Re: admins on -
best95 - 17.07.2016
vlw funcionou.