Gag System ( SQL connection )

Create something unique in every way possible, we will be glad to check it out. :)
The Pro
Member
Member
Posts: 79
Joined: Sun Sep 03, 2017 7:12 pm
Answers: 0
x 14
x 20
Been thanked: 6 times
Contact:

Gag System ( SQL connection )

Post by The Pro »

Our new Gag system is UP and Currently Active on the server, sorry for the late post, but i couldn't post early, i had some work to do and yeah :| ..


i will put the plugin here as soon as i get home, .amxx and .sma files with binaries.
gag menu looks like this: added menu time for gag :
5min, 10, 20, 40, 1hour, 2, 1day, 2, 3, 4, 5, 6, 1 week.
Menu can be opened with the following command: amx_gagmenu
you can write custom time, for as long as you want with writing whole the command manually in the console: amx_gag "name" "time IN MINUTES" "reason"

60 = 1 hour / 1440 = 1 day / 10080 = 1 week / you can count now it's all guaranteed to work smooth, everything is getting saved in database ( MySQL server ) can't dodge gag, no more bugs when you gag someone others wont be gagged again.

Installation:
after unzipping the plugin to it's place and add it to plugins.ini you must open sql.cfg which is located in folder " configs " and make the connection to database no matter how it's called the DB you make just point it on the " sql.cfg "
HOST:
DB USER:
DB PASS:
DB:

after making the connection in " sql.cfg " open your database and query this code:

Code: Select all

CREATE TABLE IF NOT EXISTS `amx_gag` (
  `id` int(11) NOT NULL auto_increment,
  `player_name` varchar(33) NOT NULL,
  `player_ip` varchar(18) NOT NULL,
  `time` int(11) NOT NULL,
  `reason` varchar(128) NOT NULL,
  `admin_name` varchar(33) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Required MODULES:

Code: Select all

#include <engine>
#include <unixtime>
#include <sqlx> 
unix Binaries is added in rar file, the others you must have them by default.

Admin Commands:

Code: Select all

amx_gag - "Nick" "Time" "Reason" 
amx_ungag - "IP of the persen whose Gagged"
amx_gagmenu - Opens the Menu
amx_gag_clean - Cleans the Database " All Gags clear " accessable by admins who's have RCON access.
If there is any kind of problem with it Please write me PM or here I'll help.

Credits to:
Saad
Black Panther

Helped with the tests.

Edit, Plugin added.


>>> Download <<<
GagSystem (SQL).rar
(25.92 KiB) Downloaded 214 times
Last edited by The Pro on Thu Sep 07, 2017 2:39 am, edited 4 times in total.
Image
Image
User avatar
Maverick
Site Admin
Site Admin
Posts: 1367
Joined: Fri Sep 01, 2017 4:54 pm
Answers: 4
Location: Sofia, Bulgaria
x 390
x 707
Has thanked: 111 times
Been thanked: 186 times
Contact:
Maverick’s avatar
Loading…

Re: Gag System ( SQL connection )

Post by Maverick »

Try it as soon as possible and share if works the way it is supposed to be. :)
Image
Image
The Pro
Member
Member
Posts: 79
Joined: Sun Sep 03, 2017 7:12 pm
Answers: 0
x 14
x 20
Been thanked: 6 times
Contact:

Re: Gag System ( SQL connection )

Post by The Pro »

Mav it's working as it supposed to be, we already tested it as i mention on my 1-st post with Saad and Black Panther.
Image
Image
User avatar
LC`
Member
Member
Posts: 27
Joined: Mon Sep 04, 2017 10:50 am
Answers: 0
Location: Why u need it, wonna stalk me?
x 1
Contact:

Re: Gag System ( SQL connection )

Post by LC` »

JEEEEZ I WANTED THIS SO MUCH, i love gaging <3.....especialy when its working properly, once again, good job, sersem prost!
[center]Say no to chalga, chalga makes you an idiot!!![/center] https://www.youtube.com/watch?v=t706ljMINw0
The Pro
Member
Member
Posts: 79
Joined: Sun Sep 03, 2017 7:12 pm
Answers: 0
x 14
x 20
Been thanked: 6 times
Contact:

Re: Gag System ( SQL connection )

Post by The Pro »

LC` wrote: Wed Sep 06, 2017 11:31 pm JEEEEZ I WANTED THIS SO MUCH, i love gaging <3.....especialy when its working properly, once again, good job, sersem prost!
sersem prost!
" Мангал " / " Gypsy "
Image
Image
User avatar
Maverick
Site Admin
Site Admin
Posts: 1367
Joined: Fri Sep 01, 2017 4:54 pm
Answers: 4
Location: Sofia, Bulgaria
x 390
x 707
Has thanked: 111 times
Been thanked: 186 times
Contact:
Maverick’s avatar
Loading…

Re: Gag System ( SQL connection )

Post by Maverick »

Here is the result. :)
Image
Image
Saad
Server VIP
Server VIP
Posts: 305
Joined: Sun Sep 03, 2017 8:39 pm
Answers: 0
Location: Karachi, Pakistan
x 391
x 209
Has thanked: 152 times
Been thanked: 48 times
Contact:

Re: Gag System ( SQL connection )

Post by Saad »

Bravo THE PRO :)
Image
User avatar
Maverick
Site Admin
Site Admin
Posts: 1367
Joined: Fri Sep 01, 2017 4:54 pm
Answers: 4
Location: Sofia, Bulgaria
x 390
x 707
Has thanked: 111 times
Been thanked: 186 times
Contact:
Maverick’s avatar
Loading…

Re: Gag System ( SQL connection )

Post by Maverick »

I have managed to put it on the navigation bar of the forum, so everyone to have quick access. :P
Image
Image
Image
The Pro
Member
Member
Posts: 79
Joined: Sun Sep 03, 2017 7:12 pm
Answers: 0
x 14
x 20
Been thanked: 6 times
Contact:

Re: Gag System ( SQL connection )

Post by The Pro »

nice job " Maverick The Developer " Thanks for giving us quick access my niqqa, we all love you, you know right

Thumbs up for the case!
Image
Image
Saad
Server VIP
Server VIP
Posts: 305
Joined: Sun Sep 03, 2017 8:39 pm
Answers: 0
Location: Karachi, Pakistan
x 391
x 209
Has thanked: 152 times
Been thanked: 48 times
Contact:

Re: Gag System ( SQL connection )

Post by Saad »

Best Gag ever specially with that SQL Database <3
Kudos to The Pro.
and great work Maverick for adding that button here so it'll be very easy for us to have a look at gagged players. :)
Image
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest