[FilterScript] GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)
#1


GAdmin v2.5.3
Last Updated: 15 October, 2016
  • Security question system (easily recover your password).
  • EasyDB, allowing you to use any SQL database type i.e. MySQL or SQLite; with just chaning one line of code.
  • SHA256 based password hashing.
  • In game modifiable configurations/settings.
  • Nicely optimized admin script in user friendly manner.
  • Fully custom SQL based ban system (ban.inc).
  • Can be easily integrated with gamemodes.
  • More than 100+ commands.
  • Script Compatibility to check player login status in other scripts and also callbacks for login status updates from gadmin filterscript.
Screenshots
  • All commands (/gcmds)


  • Configuration dialog (/settings)


  • /stats:


  • GAdmin folder (scriptfiles/GAdmin/):
Special thanks to
SickAttack - "IsAdvertisement" function.
Zeex and Yashas - I-ZCMD include
Jochemd - Timestamptodate include
Emmet_ - easydialog include
Luicy. - OnPlayerFullyConnect callback

Compatibility Script
Its very easy to detect if the player has logged in or registered or is a guest through callbacks.

Paste this code in your script where you want to have compatibility:
PHP код:
stock boolIsPlayerLoggedIn(playerid)
{
    return (
GetPVarInt(playerid"gadmin_LoginStatus") != 2) ? (true) : (false);
}
stock boolIsPlayerGuest(playerid)
{
    return (
GetPVarInt(playerid"gadmin_LoginStatus") == 2) ? (true) : (false);
}
forward OnPlayerLogin(playeridboolguest);
forward OnPlayerRegister(playerid); 
* OnPlayerLogin is called every time player enters the password and is successful in accessing his/her account.
* OnPlayerRegister is called when a new player sign-up a new account. (Note: OnPlayerLogin is also called when a player registers)

Download
http://www.mediafire.com/file/ss536r...hhp/GAdmin.zip
Reply
#2

Nice, Good Job!
Reply
#3

Very nice sir. I have been using GAdmin since you published wwIII
Reply
#4

You are funny. But nice script I guess! >_>

Код:
CMD:admins(playerid, params[])
{
	new string[128], bool:count = false, rank[35], status[15];
	
	SendClientMessage(playerid, COLOR_ORANGE_RED, " ");
	LOOP_PLAYERS(i)
	{
		if(IsPlayerHAGAdmin(i) || IsPlayerAdmin(i))
		{
			if(! count) SendClientMessage(playerid, COLOR_ORANGE_RED, "- Online Administrators -");
			
			if(GetPVarType(playerid, "HAGAdmin_Onduty") != PLAYER_VARTYPE_NONE) status = "On Duty";
			else status = "Playing";
			
			if(! strcmp(ReturnPlayerName(i), "Gammix")) rank = "Server Owner & Developer";
			else if(! strcmp(ReturnPlayerName(i), "Mitchell Weston")) rank = "Server Owner";
			else if(IsPlayerAdmin(i)) rank = "RCON Admin";
			else
			{
				switch(GetPlayerHAGAdminLevel(i))
				{
					case 1: rank = "Trial Admin";
					case 2: rank = "Junior Admin";
					case 3: rank = "Senior Admin";
					case 4: rank = "Lead Admin";
					case 5: rank = "Master Admin";
					default: rank = "Server Manager";
				}
			}
			
			format(string, sizeof(string), "%s [%i] | Rank: %s | Level %i | Status: %s", ReturnPlayerName(i), i, rank, GetPlayerHAGAdminLevel(i), status);
			SendClientMessage(playerid, COLOR_ORANGE_RED, string);
			count = true;
		}
	}
	if(! count) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: No admin on-duty currently.");
	return 1;
}
Reply
#5

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
You are funny. But nice script I guess! >_>

Код:
CMD:admins(playerid, params[])
{
	new string[128], bool:count = false, rank[35], status[15];
	
	SendClientMessage(playerid, COLOR_ORANGE_RED, " ");
	LOOP_PLAYERS(i)
	{
		if(IsPlayerHAGAdmin(i) || IsPlayerAdmin(i))
		{
			if(! count) SendClientMessage(playerid, COLOR_ORANGE_RED, "- Online Administrators -");
			
			if(GetPVarType(playerid, "HAGAdmin_Onduty") != PLAYER_VARTYPE_NONE) status = "On Duty";
			else status = "Playing";
			
			if(! strcmp(ReturnPlayerName(i), "Gammix")) rank = "Server Owner & Developer";
			else if(! strcmp(ReturnPlayerName(i), "Mitchell Weston")) rank = "Server Owner";
			else if(IsPlayerAdmin(i)) rank = "RCON Admin";
			else
			{
				switch(GetPlayerHAGAdminLevel(i))
				{
					case 1: rank = "Trial Admin";
					case 2: rank = "Junior Admin";
					case 3: rank = "Senior Admin";
					case 4: rank = "Lead Admin";
					case 5: rank = "Master Admin";
					default: rank = "Server Manager";
				}
			}
			
			format(string, sizeof(string), "%s [%i] | Rank: %s | Level %i | Status: %s", ReturnPlayerName(i), i, rank, GetPlayerHAGAdminLevel(i), status);
			SendClientMessage(playerid, COLOR_ORANGE_RED, string);
			count = true;
		}
	}
	if(! count) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: No admin on-duty currently.");
	return 1;
}
I forgot to omit that part, was used in my server before.

Updated the links.
Reply
#6

What about MySQL saving system? If you could make it then it would be the best admin system ever

Btw nice work thanks for sharing
Reply
#7

Admin commands?
Reply
#8

It's pretty good +rep
Reply
#9

Thanks all!

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
Admin commands?
Added a list of commands in the thread.
Reply
#10

Certainly yes, you can replace it with Redrex as well as with world war III.

Don't ask me to do so because i don't have any client files with me anymore.
Reply
#11

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Certainly yes, you can replace it with Redrex as well as with world war III.

Don't ask me to do so because i don't have any client files with me anymore.
Ok sure. Thanks
Reply
#12

Nice Dude
Reply
#13

Amazing script. I love how you nicely use enums instead of variables pile up.

REP+
Reply
#14

when i compiled
there are many error:
Код:
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(936) : error 017: undefined symbol "db_get_field_int"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1220) : warning 203: symbol is never used: "len"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 017: undefined symbol "bufferhash"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : warning 215: expression has no effect
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 001: expected token: ";", but found "]"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 029: invalid expression, assumed zero
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#15

Quote:
Originally Posted by fahlevy
Посмотреть сообщение
when i compiled
there are many error:
Код:
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(936) : error 017: undefined symbol "db_get_field_int"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1220) : warning 203: symbol is never used: "len"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 017: undefined symbol "bufferhash"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : warning 215: expression has no effect
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 001: expected token: ";", but found "]"
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 029: invalid expression, assumed zero
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Thats because you are using old version of SAMP and easydb.

Download SAMP 0.3.7 R2-1 package and easydb.inc build 3 or 4. And then compile.
Reply
#16

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Thats because you are using old version of SAMP and easydb.

Download SAMP 0.3.7 R2-1 package and easydb.inc build 3 or 4. And then compile.
i downloaded the latest samp version and easydb.inc .still same error ..?
Reply
#17

Goto easydb.inc and set this to false:
pawn Код:
#if !defined DB_SYNCHRONOUS
    #define DB_SYNCHRONOUS          (false)
#endif
Or use the easydb from the admin system package itself.

pawn Код:
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(936) : error 017: undefined symbol "db_get_field_int"
This error generally indicates your SAMP version is outdated.
Reply
#18

i changed it ,and its still error bro
i just download the version of samp ,15 minutes ago..
Reply
#19

Use the easydb.inc from the download package of this FS. Make sure you are compiling the script from right compiler, the one situated with updated pawno files.

If still no, I will soon try compiling it myself with all latest files and upload if there's a fix from current version.
Reply
#20

i'v been download the full package,and still error ..
yes,just try recompile broo .
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)