[Ajuda] Admins Em DIALOG.
#1

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=0; i<MAX_PLAYERS; i++)
{
if(
IsPlayerConnected(i)){
if(
admin[i]){
new 
str[256];
new 
pname[24];
GetPlayerName(i, pname, 24);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
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(playerid, 0x0080FFAA, str);
count++;
}
}
}
if(
count == 0)
{
SendClientMessage(playerid, Vermelho, "(ERRO) Nгo hб administradores online no momento");
}
return 
1;
} 
Obrigado A Todos !
Reply
#2

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

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

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

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

Obrigado Amigo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)