Esconder nombre admin - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Esconder nombre admin (
/showthread.php?tid=290661)
Esconder nombre admin -
santo_zoketaso - 16.10.2011
ola tengo un duda de como hacer un comando que al ponerlo oculte su nombre cuando alguien ponga /admins, ya tengo la estructura del comando pero no encuentro como hacer para que lo oculte xd
seria algo como /hideadmin, y cuando cualquier user ponga el comando /admins ya no le salga el nombre del admin que puso el comando
creo ke seria un poco dificil xd pero ya lo he visto
Respuesta: Esconder nombre admin -
Shoock[K] - 16.10.2011
Creo que podrias exceptuarlos el nivel de admin en el comando /admins , pasame ese comando y te lo hago
Respuesta: Esconder nombre admin -
santo_zoketaso - 16.10.2011
mira este es el comando, pero sigo pensando en lo ke pedi xd, o la otra es poder ocultar un nombre en especifico
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, 0xFF6464FF, "|___ Staff ___|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 2013)
{
new admtext[64];
if(PlayerInfo[i][pAdmin] == 2012) { admtext = "Admin dueсo [2012]"; }
else if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Admin [1338]"; }
else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Admin [4]"; }
else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Admin [3]"; }
else if(PlayerInfo[i][pAdmin] == 2) { admtext = "Moderador [2]"; }
else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Moderador [1]"; }
else { admtext = "Moderador Nivel 1"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, 256, "%s: %s", admtext, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
format(string, 256, "(Servicio) %s: %s", admtext, sendername);
SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
}
}
}
}
}
return 1;
}