SA-MP Forums Archive
[Ajuda] Admins Em DIALOG. - 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 Em DIALOG. (/showthread.php?tid=562273)



Admins Em DIALOG. - SkyneTSAMP - 07.02.2015

Olб,

Queria Saber Se Da Pra Colocar Esse Comando De ADMIN Do Meu Server Em Dialog

PHP код:
if(!strcmp(cmdtext"/admins"true))
{
SendClientMessage(playerid,0x00FF40AA".:: - Administradores Online - ::.");
new 
count=0;
for(new 
i=0i<MAX_PLAYERSi++)
{
if(
IsPlayerConnected(i)){
if(
admin[i]){
new 
str[256];
new 
pname[24];
GetPlayerName(ipname24);
format(file2sizeof(file2), PASTA_CONTASpname);
if(
pAdmin[i] == 1){
format(str,sizeof(str),"%s (%d) :: [Recruta - Level 1]"pname,i);
}
if(
pAdmin[i] == 2){
format(str,sizeof(str),"%s (%d) :: [Ajudante - Level 2]"pname,i);
}
if(
pAdmin[i] == 3){
format(str,sizeof(str),"%s (%d) :: [Administrador - Level 3]"pname,i);
}
if(
pAdmin[i] == 4){
format(str,sizeof(str),"%s (%d) :: [SuB_DONO - Level 4]"pname,i);
}
if(
pAdmin[i] == 5){
format(str,sizeof(str),"%s (%d) :: [Dono Oficial]"pname,i);
}
SendClientMessage(playerid0x0080FFAAstr);
count++;
}
}
}
if(
count == 0)
{
SendClientMessage(playeridVermelho"(ERRO) Nгo hб administradores online no momento");
}
return 
1;

Obrigado A Todos !


Re: Admins Em DIALOG. - CLANdok - 07.02.2015

Sim dб, use: https://sampwiki.blast.hk/wiki/ShowPlayerDialog

Olhe: https://sampforum.blast.hk/showthread.php?tid=119297


Re: Admins Em DIALOG. - SkyneTSAMP - 07.02.2015

Vlw, Mas Eu Nгo Sei Colocar Nesse Comando :/ .


Re: Admins Em DIALOG. - [BOPE]Seu._.Madruga - 08.02.2015

No comeзo do GM:
PHP код:
#define DIALOG_ADMINS 99 
Comando:
PHP код:
if(! strcmp cmdtext"/admins" true ))
{
SendClientMessage playerid ,0x00FF40AA ".:: - Administradores Online - ::." );
new 
count ;
for(new 
MAX_PLAYERS ++)
{
if( 
IsPlayerConnected)){
if( 
admin]){
new 
str [256 ];
new 
pname 24];
GetPlayerName pname 24 );
format file2 sizeoffile2 ), PASTA_CONTAS pname );
if( 
pAdmin] == 1){
format strsizeofstr), "%s (%d) :: [Recruta - Level 1]\n" pname ,);
}
if( 
pAdmin] == 2){
format strsizeofstr), "%s (%d) :: [Ajudante - Level 2]\n" pname);
}
if( 
pAdmin] == 3){
format strsizeofstr), "%s (%d) :: [Administrador - Level 3]\n" pname );
}
if( 
pAdmin] == 4){
format strsizeofstr), "%s (%d) :: [SuB_DONO - Level 4]\n" pname ,);
}
if( 
pAdmin] == 5){
format strsizeofstr), "%s (%d) :: [Dono Oficial]\n" pname i);
}
ShowPlayerDialog (playeridDIALOG_ADMINSDIALOG_STYLE_MSGBOX"Administradores Online no momento."str  "Close" "" ) ;
count ++;




Re: Admins Em DIALOG. - SkyneTSAMP - 08.02.2015

Obrigado Amigo