/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)
+--- Thread: /admins dialog (
/showthread.php?tid=416029)
/admins dialog -
bebothekillar - 15.02.2013
Hello, i wanna a dialog xD " Now all my posts are dialog " Nvm.
I wanna a dialog that's when i type /admins they get to me the admins online with levels and id like this
So can any one help
Re: /admins dialog - Patrick - 15.02.2013
please show us some code of some of your admin example
pawn Code:
CMD:admins(playerid)
{
for(new i = 0;i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(AdminLevel[i] > 1)
{
format(string,sizeof(string),"%s{FFFFFF}%s {FF0000}(ID:%d){FFFFFF} AdminLevel: {FF0000}%d \n",string,GetName(i),i,AdminLevel[i]);
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX, "Admins", string, "Exit", "");
}
return 1;
}