SA-MP Forums Archive
Sreach Admin Script - 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: Sreach Admin Script (/showthread.php?tid=551957)



Sreach Admin Script - itachi - 21.12.2014

pleas i sreach filterscript admins online dialog....
with :

admin lvl 1 = helper
admin lvl 2 = helper
admin lvl 3 = eventer
admin lvl 4 = High Admin
admin lvl 5 = Leader Server



Re: Sreach Admin Script - zT KiNgKoNg - 21.12.2014

****** it, we're not your slaves.


Re: Sreach Admin Script - OsteeN - 21.12.2014

There's a filterscript section for filterscripts.. Search through that one and you'll find something.


Re: Sreach Admin Script - fahlevy - 21.12.2014

Quote:
Originally Posted by itachi
Посмотреть сообщение
pleas i sreach filterscript admins online dialog....
with :

admin lvl 1 = helper
admin lvl 2 = helper
admin lvl 3 = eventer
admin lvl 4 = High Admin
admin lvl 5 = Leader Server
you mean like this??


you must add
Код:
"ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,""COL_RED"Staff Of United War Z Gaming",dialog,"OK","");
here full code :
Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
        	new count = 0;
     	    new string[128];
	        new dialog[500];
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
		 		if (IsPlayerConnected(i))
	 			{
					if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0)
	 				{
						if(AccInfo[i][Level] > 5)
						{
							AdmRank = "Professional Admin";
						}
	 					if(IsPlayerAdmin(i))
					  	{
					  		AdmRank = "RCON Administrator";
					  	}
					    else
					    {
					 		switch(AccInfo[i][Level])
							{
								case 1: {
								AdmRank = "Basic Moderator";
								}
								case 2: {
								AdmRank = "Moderator";
								}
								case 3: {
								AdmRank = "Master Moderator";
								}
								case 4: {
								AdmRank = "Administrator";
								}
								case 5: {
								AdmRank = "Master Administrator";
								}
							}
						}
			 			switch(AccInfo[i][OnDuty])
						{
							case 0: AdmDuty = "Playing!";
							case 1: AdmDuty = "On Duty!";
						}
						format(string, 128, "%s (Id: %i) | Level: %d(%s, %s)\n",PlayerName2(i),i,AccInfo[i][Level],AdmRank,AdmDuty);
						strcat(dialog,string);
						count++;
					}
				}
			}
			if (count == 0)
			ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,""COL_RED"Staff Of United War Z Gaming","No admin online yet.","OK","");
			else ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,""COL_RED"Staff Of United War Z Gaming",dialog,"OK","");
			return 1;
	}



Re: Sreach Admin Script - MohanedZzZ - 21.12.2014

Quote:
Originally Posted by fahlevy
Посмотреть сообщение
you mean like this??


you must add
Код:
"ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,""COL_RED"Staff Of United War Z Gaming",dialog,"OK","");
here full code :
Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
        	new count = 0;
     	    new string[128];
	        new dialog[500];
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
		 		if (IsPlayerConnected(i))
	 			{
					if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0)
	 				{
						if(AccInfo[i][Level] > 5)
						{
							AdmRank = "Professional Admin";
						}
	 					if(IsPlayerAdmin(i))
					  	{
					  		AdmRank = "RCON Administrator";
					  	}
					    else
					    {
					 		switch(AccInfo[i][Level])
							{
								case 1: {
								AdmRank = "Basic Moderator";
								}
								case 2: {
								AdmRank = "Moderator";
								}
								case 3: {
								AdmRank = "Master Moderator";
								}
								case 4: {
								AdmRank = "Administrator";
								}
								case 5: {
								AdmRank = "Master Administrator";
								}
							}
						}
			 			switch(AccInfo[i][OnDuty])
						{
							case 0: AdmDuty = "Playing!";
							case 1: AdmDuty = "On Duty!";
						}
						format(string, 128, "%s (Id: %i) | Level: %d(%s, %s)\n",PlayerName2(i),i,AccInfo[i][Level],AdmRank,AdmDuty);
						strcat(dialog,string);
						count++;
					}
				}
			}
			if (count == 0)
			ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,""COL_RED"Staff Of United War Z Gaming","No admin online yet.","OK","");
			else ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,""COL_RED"Staff Of United War Z Gaming",dialog,"OK","");
			return 1;
	}


OT: download LuxAdmin and open LuxAdmin.pwn and scroll down you will find the ranks name, edit them and complite and load the filterscript.


Re: Sreach Admin Script - Sew_Sumi - 22.12.2014

The product of NGG, Ranks such as "Helper" who don't actually know anything, and "Eventer"s where events aren't planned out and are done spur of the moment to save their ass.


You're asking in Scripting Help to get something you can actually make.

If you need to ask someone to script for you, hit that "Hiring Scripters" thread...

If you can't script, Learn.

Quote:
Originally Posted by MohanedZzZ
Посмотреть сообщение
Wonder what Start+C does...


Re: Sreach Admin Script - BornHuman - 22.12.2014

http://lmgtfy.com/?q=SA%3AMP+Admin+System+Filterscript