Por isso aqui em dialog. -
Gaguin - 29.09.2016
CMD:admins(playerid)
{
if(Logado{playerid}==false)return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo estб logado para utilizar este comando!");
SCM(playerid, 0xADFF2FFF, "Todos os administradores online");
new AdmLevel[64], sztring[50], count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Logado{playerid} == true)
{
if(Player[i][Admin] >= 1)
{
if(Player[i][Admin] == 6) { AdmLevel = "Level 6"; }
if(Player[i][Admin] == 5) { AdmLevel = "Level 5"; }
if(Player[i][Admin] == 4) { AdmLevel = "Level 4"; }
if(Player[i][Admin] == 3) { AdmLevel = "Level 3"; }
if(Player[i][Admin] == 2) { AdmLevel = "Level 2"; }
if(Player[i][Admin] == 1) { AdmLevel = "Level 1"; }
format(sztring, sizeof(sztring), PegarConta(i));
if(Player[i][Admin] == 4 || Player[i][Admin] == 5 || Player[i][Admin] == 6)
{
SendFormattedMessage(playerid, 0xADFF2FFF, "Admin{FFFFFF}: %s [%s] Hits: %d Funзгo: %s", Nome(i), AdmLevel, Player[i][pRpt], DOF2_GetString(sztring,"Funзгo"));
count++;
}
else SendFormattedMessage(playerid, 0xADFF2FFF, "Admin{FFFFFF}: %s [%s] Hits: %d", Nome(i), AdmLevel, Player[i][pRpt]);
count++;
}
}
}
}
if(count == 0) return SCM(playerid, COR_BRANCO, "Nгo tem nem um administrador online no momento.");
return 1;
}
Re: Por isso aqui em dialog. - PedroEduardo - 29.09.2016
pawn Код:
#define DIALOG_ADMINS 999
CMD:admins(playerid, params[])
{
if(Logado[playerid] == false) return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo estб logado para utilizar este comando!");
new AdmLevel[64], sztring[50], count=0;
format(sztring, sizeof sztring, "nick\tfuncao\n");
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
if(Logado{playerid} == true)
if(Player[i][Admin] > 0)
{
if(Player[i][Admin] == 6) AdmLevel = "Level 6";
if(Player[i][Admin] == 5) AdmLevel = "Level 5";
if(Player[i][Admin] == 4) AdmLevel = "Level 4";
if(Player[i][Admin] == 3) AdmLevel = "Level 3";
if(Player[i][Admin] == 2) AdmLevel = "Level 2";
if(Player[i][Admin] == 1) AdmLevel = "Level 1";
format(sztring, 10000, "%s\t%s\n", Nome(i), AdmLevel);
count++;
}
}
if(count == 0) return SCM(playerid, COR_BRANCO, "Nгo tem nem um administrador online no momento.");
ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_TABLIST_HEADERS, "Admins", sztring, "Fechar", "");
return 1;
}
acho que ta funcionando ..
Re: Por isso aqui em dialog. -
Gaguin - 29.09.2016
Deu esse error aqui
D:\GameM\gamemodes\GM.pwn(14678 : error 010: invalid function or declaration
D:\GameM\gamemodes\GM.pwn(14679) : error 010: invalid function or declaration
deu nas
if(count == 0) return SCM(playerid, COR_BRANCO, "Nгo tem nem um administrador online no momento.");
return 1;
Re: Por isso aqui em dialog. -
MorteAmerica - 29.09.2016
Quote:
Originally Posted by Gaguin
Deu esse error aqui
D:\GameM\gamemodes\GM.pwn(14678 : error 010: invalid function or declaration
D:\GameM\gamemodes\GM.pwn(14679) : error 010: invalid function or declaration
deu nas
if(count == 0) return SCM(playerid, COR_BRANCO, "Nгo tem nem um administrador online no momento.");
return 1;
|
"SCM" subistitua por "SendClientMessage"
Re: Por isso aqui em dialog. -
Gaguin - 29.09.2016
Obrigado galera