[Ajuda] /admins - 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 (
/showthread.php?tid=397439)
/admins -
Gleisson_. - 04.12.2012
PHP код:
CMD:admins(playerid)
{
new gString2[500], Nomeado[50];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, gAdminName, sizeof(gAdminName));
if(Informacoes[i][PlayerAdmin] >= 1)
{
if(Informacoes[i][PlayerAdmin] == 1) Nomeado = "Helper";
if(Informacoes[i][PlayerAdmin] == 2) Nomeado = "Moderador";
if(Informacoes[i][PlayerAdmin] == 3) Nomeado = "Administrador";
if(Informacoes[i][PlayerAdmin] == 4) Nomeado = "Administrador Geral";
if(Informacoes[i][PlayerAdmin] == 5) Nomeado = "Sub-Dono";
if(Informacoes[i][PlayerAdmin] == 6) Nomeado = "Dono";
format(gString, sizeof(gString), "{FF0000}Administrador:{FFFFFF} %s{FF0000} - Level{FFFFFF} %d{FF0000} - Hierarquia:{FFFFFF} %s\n", gAdminName, Informacoes[i][PlayerAdmin], Nomeado);
strcat(gString2, gString, sizeof(gString2));
}
}
if(Informacoes[playerid][PlayerAdmin] < 1)
{
format(gString, sizeof(gString), "Administraзгo Offline no Momento!");
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString, "Fechar", "");
}
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString2, "Fechar", "");
return 1;
}
O /admin estб bugando no servidor, eu digito /admins, e aparece um monte de player que nгo й adm, e mostra que й.
Utilizo o sistema: Funeral's Admin System. Acho que o nome й assim ¬¬.
E eles podem usar os comandos de adm..
Foto do problema
http://imageshack.us/photo/my-images/600/samp104fw.png/
Re: /admins - Joao Pedro - 04.12.2012
Код:
CMD:admins(playerid)
{
new gString2[500], Nomeado[50];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Informacoes[i][PlayerAdmin] < 1) continue;
GetPlayerName(i, gAdminName, sizeof(gAdminName));
if(Informacoes[i][PlayerAdmin] >= 1)
{
if(Informacoes[i][PlayerAdmin] == 1) Nomeado = "Helper";
if(Informacoes[i][PlayerAdmin] == 2) Nomeado = "Moderador";
if(Informacoes[i][PlayerAdmin] == 3) Nomeado = "Administrador";
if(Informacoes[i][PlayerAdmin] == 4) Nomeado = "Administrador Geral";
if(Informacoes[i][PlayerAdmin] == 5) Nomeado = "Sub-Dono";
if(Informacoes[i][PlayerAdmin] == 6) Nomeado = "Dono";
format(gString, sizeof(gString), "{FF0000}Administrador:{FFFFFF} %s{FF0000} - Level{FFFFFF} %d{FF0000} - Hierarquia:{FFFFFF} %s\n", gAdminName, Informacoes[i][PlayerAdmin], Nomeado);
strcat(gString2, gString, sizeof(gString2));
}
}
if(Informacoes[playerid][PlayerAdmin] < 1)
{
format(gString, sizeof(gString), "Administraзгo Offline no Momento!");
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString, "Fechar", "");
}
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString2, "Fechar", "");
return 1;
}
#OFF
Cуdigo feio pqp