SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 10/08/2015, 10:32 AM   #1
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,789
Reputation: 822
Default [MySQL/SQLite] GAdmin v2 - Optimized/User friendly/Plug'n'Play features/Up-to-date



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 Code:
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
__________________

My GitHub:


Last edited by Gammix; 05/11/2016 at 07:37 PM.
Gammix is offline   Reply With Quote
Old 10/08/2015, 10:39 AM   #2
LazyB0y
Huge Clucker
 
LazyB0y's Avatar
 
Join Date: Feb 2014
Location: Pakistan
Posts: 279
Reputation: 15
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

Nice, Good Job!
__________________
LazyB0y is offline   Reply With Quote
Old 10/08/2015, 12:25 PM   #3
Q_Lite
Big Clucker
 
Join Date: Sep 2012
Posts: 113
Reputation: 17
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

Very nice sir. I have been using GAdmin since you published wwIII
Q_Lite is offline   Reply With Quote
Old 11/08/2015, 04:57 AM   #4
xXitsgodzillaXx
Huge Clucker
 
xXitsgodzillaXx's Avatar
 
Join Date: Sep 2011
Location: Cloud nine baby.
Posts: 408
Reputation: 13
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

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

Code:
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;
}
__________________
Server is still currently in development and is being worked on everyday. So come join on in and see what progress I've made!

xXitsgodzillaXx is offline   Reply With Quote
Old 11/08/2015, 09:29 AM   #5
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,789
Reputation: 822
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

Quote:
Originally Posted by xXitsgodzillaXx View Post
You are funny. But nice script I guess! >_>

Code:
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.
__________________

My GitHub:

Gammix is offline   Reply With Quote
Old 12/08/2015, 04:28 PM   #6
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 818
Reputation: 103
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

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
__________________
SecretBoss is offline   Reply With Quote
Old 13/08/2015, 02:30 PM   #7
Tuntun
High-roller
 
Tuntun's Avatar
 
Join Date: May 2012
Posts: 1,670
Reputation: 85
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

Admin commands?
__________________
Are you an aviation fan? to get more aviation photo like:
https://www.********.com/profile.php?id=657212634354407
Tuntun is offline   Reply With Quote
Old 13/08/2015, 02:44 PM   #8
Dutheil
Godfather
 
Dutheil's Avatar
 
Join Date: Jul 2014
Location: France
Posts: 5,138
Reputation: 221
Default Re : GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

It's pretty good +rep
__________________
#PrayForFrenchForum
GitHub

Code:
print({1466458484, 543452960, 2037347616, 1952999790, 1797286260, 544694643, 543649646, 1851859053, 1634428192, 1056964608});
Dutheil is offline   Reply With Quote
Old 13/08/2015, 02:58 PM   #9
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,789
Reputation: 822
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

Thanks all!

Quote:
Originally Posted by Tuntun View Post
Admin commands?
Added a list of commands in the thread.
__________________

My GitHub:

Gammix is offline   Reply With Quote
Old 15/08/2015, 02:48 AM   #10
Qu3esL
Big Clucker
 
Qu3esL's Avatar
 
Join Date: Sep 2012
Location: Antartica
Posts: 153
Reputation: 22
Default Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)

Perfect admin system. It would be great if you add event commands for teams

And can I use this in Redrex, I want to replace the gadmin from there with this one, as this is more advance and up to date?
Qu3esL is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/me integrated on line chat Sk1lleD Scripting Help 4 09/07/2013 05:28 PM
Integrated test maxtorcd55 Everything and Nothing 4 14/06/2013 12:18 AM
3c integrated colors help :P kin Help Archive 6 12/01/2011 10:34 PM
Integrated graphics [SU]CHRiS Everything and Nothing 13 06/01/2010 05:47 PM


All times are GMT. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.