SA-MP Forums Archive
[FilterScript] GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) (/showthread.php?tid=585036)

Pages: 1 2 3 4 5 6


[MySQL/SQLite] GAdmin v2 - Optimized/User friendly/Plug'n'Play features/Up-to-date - Gammix - 10.08.2015


GAdmin v2.5.3
Last Updated: 15 October, 2016
Screenshots 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


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - LazyB0y - 10.08.2015

Nice, Good Job!


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Q_Lite - 10.08.2015

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


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - xXitsgodzillaXx - 11.08.2015

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;
}



Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 11.08.2015

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.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - SecretBoss - 12.08.2015

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


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Tuntun - 13.08.2015

Admin commands?


Re : GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Dutheil - 13.08.2015

It's pretty good +rep


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 13.08.2015

Thanks all!

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


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 15.08.2015

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.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Qu3esL - 15.08.2015

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


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Iceblizard - 15.08.2015

Nice Dude


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Excips - 18.08.2015

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

REP+


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - fahlevy - 22.08.2015

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.



Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 22.08.2015

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.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - fahlevy - 22.08.2015

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 ..?


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 22.08.2015

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.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - fahlevy - 22.08.2015

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


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 22.08.2015

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.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - fahlevy - 22.08.2015

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