SA-MP Forums Archive
Help in /admins (DIALOG) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help in /admins (DIALOG) (/showthread.php?tid=134304)



Help in /admins (DIALOG) - [WSM]Deadly_Evil - 16.03.2010

I have made an Dialog /admins system it has a bug it only shows one admin why not others??
Help me guys fix this code:
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count = 0;
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(IsPlayerDAdminByDeadly[i][Level] >= 1 && IsPlayerDAdminByDeadly[i][Hide] == 0)
{
if(IsPlayerDAdminByDeadly[i][Level] > 5) {
AdmRank = "RCON Admin";
}
if(IsPlayerAdmin(i)) AdmRank = "RCON Admin";
else
switch(IsPlayerDAdminByDeadly[i][Level])
{
case 1: AdmRank = "Donator";
case 2: AdmRank = "Basic Moderator";
case 3: AdmRank = "Moderator";
case 4: AdmRank = "Administrator";
case 5: AdmRank = "Head Administrator";
}
format(string,128,"\n%s (ID:%i) | Level: %d - %s\nType /report if you suspect someone hacks/racism.",PlayerName2(i),i,IsPlayerDAdminByDeadly[i][Level], AdmRank);
ShowPlayerDialog(playerid, ADMINLIST, DIALOG_STYLE_MSGBOX, "Online Admins and Vips:", string, "OK", "CANCEL");
count++;
}
}
}
if (count == 0)
SendClientMessage(playerid,red,"SERVER: There are no admins and vips online");
return 1;
}



Re: Help in /admins (DIALOG) - hab2ever - 16.03.2010

Hehehehehe!
edit in luxadmin? :P

lol



Re: Help in /admins (DIALOG) - [WSM]Deadly_Evil - 16.03.2010

Quote:
Originally Posted by hab2ever
Hehehehehe!
edit in luxadmin? :P

lol
Whats your problem
Any help guys?


Re: Help in /admins (DIALOG) - Rzzr - 16.03.2010

Hey hey, calm down mate...


Re: Help in /admins (DIALOG) - Tranceworm - 16.03.2010

Um maybe there i only 1 admin ?
Ps! I think it doenst show the server oener.


Re: Help in /admins (DIALOG) - [WSM]Deadly_Evil - 17.03.2010

Quote:
Originally Posted by Tranceworm
Um maybe there i only 1 admin ?
Ps! I think it doenst show the server oener.
No, It shows only the admin who's playerid is first...
I have 6 Admins Online it only shows one admin D:


Re: Help in /admins (DIALOG) - Razvann - 17.03.2010

I have same problem, too..


Re: Help in /admins (DIALOG) - [WSM]Deadly_Evil - 20.03.2010

Bump!!!


Re: Help in /admins (DIALOG) - [WSM]Deadly_Evil - 21.03.2010

again bumping
i think it can be done by Foreach.inc Any help guys