SA-MP Forums Archive
Help make to dialog messagebox - 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: Help make to dialog messagebox (/showthread.php?tid=507013)



Help make to dialog messagebox - gotwarzone - 15.04.2014

Can someone please help me make this a dialog message box? to make a little professional looking server.

Код:
COMMAND:admins(playerid, params[])
{
        new string[1000];
        foreach(Player, i)
		{
        if(IsOnDuty[i])
        {
			if(P_Data[i][pAdmin] == 1) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 1 (Moderator)",GetName(i), i); }
	        else if(P_Data[i][pAdmin] == 2) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 2 (Junior Admin)",GetName(i), i); }
	        else if(P_Data[i][pAdmin] == 3) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 3 (Senior Admin)",GetName(i), i); }
	        else if(P_Data[i][pAdmin] == 4) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 4 (Lead Admin)",GetName(i), i); }
	        else if(P_Data[i][pAdmin] == 5) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 5 (Manager Admin)",GetName(i), i); }
	        else if(P_Data[i][pAdmin] == 6) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 6 (Global Admin)",GetName(i), i); }
	        else if(P_Data[i][pAdmin] == 7) { format(string,sizeof(string),""COL_BLUE"Admin %s (%d) - Level 7 (Server Owner)",GetName(i), i); }
	        else return SCM(playerid,-1,""COL_MARONE"-No Administrator Is Online-");
	        SCM(playerid, -1, ""COL_GREEN"|_____________________________________________|");
	        SCM(playerid, -1, ""COL_YELLOW"                 Online Admins");
	        SCM(playerid,-1,string);
			SCM(playerid, -1, ""COL_GREEN"|_____________________________________________|");
		}else return SCM(playerid,-1,""COL_MARONE"-No Administrator Is Online-");
		}
        return 1;
}
Код:
COMMAND:vips(playerid, params[])
{
        new string[1000];
        foreach(Player, i) {
        if(pInfo[i][VIPlevel] == 1) { format(string,sizeof(string),""COL_LIME"VIP. %s (%d) - Level 1 (Bronze)",GetName(i), i); }
	    else if(pInfo[i][VIPlevel] == 2) { format(string,sizeof(string),""COL_LIME"VIP. %s (%d) - Level 2 (Silver)",GetName(i), i); }
   		else if(pInfo[i][VIPlevel] == 3) { format(string,sizeof(string),""COL_LIME"VIP. %s (%d) - Level 3 (Gold)",GetName(i), i); }
     	else return SCM(playerid,-1,""COL_MARONE"-No VIPs. Is Online-");
     	SCM(playerid, -1, ""COL_GREEN"|_____________________________________________|");
	    SCM(playerid, -1, ""COL_YELLOW"                 Online VIPs.");
	    SCM(playerid,-1,string);
		SCM(playerid, -1, ""COL_GREEN"|_____________________________________________|");
		}
        return 1;
}



Re: Help make to dialog messagebox - Zues - 15.04.2014

https://www.******.com/?gfe_rd=cr&ei...+make+a+dialog


Re: Help make to dialog messagebox - gotwarzone - 15.04.2014

I tried but ended up messing the dialogs.


Re: Help make to dialog messagebox - ReD_HunTeR - 15.04.2014

you mean like other server have?


Re: Help make to dialog messagebox - gotwarzone - 15.04.2014

Quote:
Originally Posted by BlackBomb
Посмотреть сообщение
you mean like other server have?
Yes! I just want to make it as a dialog message box. Like when you do /admins it will show it on a dialog messagebox all the online admins.