[Ajuda] mudar /admins para dialog !
#1

Olа queria saber como eu coloco /admins do JFadmins em dialog se alguem pode manda o code pronto agradeзo !tentei mais deu varios erros !

[code]
COMMAND:admins(playerid, params[])
{
SendClientMessage(playerid, 0xFF5EFFFF, "|______________ Admins Online ______________|");
for(new i = 0; i <= GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][Administrador] > 0)
{
new LevelAdmin[128];
if(PlayerInfo[i][Administrador] == 1)
{
LevelAdmin = "Moderador [ Level: 1 ]";
}
if(PlayerInfo[i][Administrador] == 2)
{
LevelAdmin = "Administrador [ Level: 2 ]";
}
if(PlayerInfo[i][Administrador] == 3)
{
LevelAdmin = "Administrador Master [ Level: 3 ]";
}
if(PlayerInfo[i][Administrador] == 4)
{
LevelAdmin = "Administrador Sub-Dono [ Level: 4 ]";
}
if(PlayerInfo[i][Administrador] == 5)
{
LevelAdmin = "Administrador Dono [ Level: 5 ]";
}
GetPlayerName(i, Jogador, sizeof(Jogador));
if(PlayerInfo[i][Trabalhando] == 1)
{
format(Celula, 128, "%s: %s {eb6565} (Trabalhando)", Jogador, LevelAdmin);
SendClientMessage(playerid, -1, Celula);
}
if(PlayerInfo[i][Trabalhando] == 0)
{
format(Celula, 128, "%s: %s {eb6565} (Jogando)", Jogador, LevelAdmin);
SendClientMessage(playerid, -1, Celula);
}
if(PlayerInfo[i][Trabalhando] == 2)
{
format(Celula, 128, "%s: %s {eb6565} (Ausente)", Jogador, LevelAdmin);
SendClientMessage(playerid, -1, Celula);
}
}
}
return true;
[code]
Reply
#2

Use :

ShowPlayerDialog
strcat

Para fazer isto .
Atй mais amigo



"codigo pronto" espero que eu realmente nгo tenha lido isto affs...
Reply
#3

Amigo nao emtendi sua explicaзгo direito !
Reply
#4

Amigo , estude as funзхes "ShowPlayerDialog" e "strcat" .
Entendeu agora ?


Links :

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/Strcat

Ok ? Atй mais .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)