AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   V.I.P System ( API + Web ) (https://forums.alliedmods.net/showthread.php?t=312953)

Natsheh 12-22-2018 09:17

V.I.P System ( API + Web )
 
V.I.P System
Version: 2.1

Description :-

VIP system, basically you can create flags and assign to each flag some functions, abilities these abilities and functions are not limited.

Features :-

* This VIP System is associated with the AmxBans WEB Frame.
* API Support.
* MySql & File Saving methods.
* Has Expiration date auto remove.
* This mostly is very helpful for scripters/coders...

Change Log:-
Code:

v1.0: Release.
v2.0:
  • Fixed several bugs reported in post #7

  • Added more extra plugins ( vip_dust2_priv, vip_top_assign, Statsx [MySql Support], Auto Rank Reset )

  • VIP list optimized now you can view flags info also + Added top15 list for statsx.

  • Added more natives...

v2.1:
  • Fixed few bugs in the code + optimized the script!



Cvars & Commands:-

*Cvars
  • vip_save_type (Default: 0 = File) / 1 = MySql.
  • vip_sql_table_prefix (Default: vips)
*Console Commands
  • amx_reloadvips
  • amx_available_vip_flags
  • amx_addvip
*Client Commands
  • amx_modifievips_menu

* Big Thanks to (Credits) *
  • AmxBans Creators
  • AmxModX Team


API :-
Spoiler



Servers are using this plugin

SHIELD755 12-23-2018 00:11

Re: V.I.P System ( API + Web )
 
GG nice plugin gonna test in my server :)

Darkwob 02-04-2019 23:32

Re: V.I.P System ( API + Web )
 
my pc left 4 dead 2 game try ! working ?

OciXCrom 02-05-2019 08:49

Re: V.I.P System ( API + Web )
 
Quote:

Originally Posted by Darkwob (Post 2638208)
my pc left 4 dead 2 game try ! working ?

L4D2 doesn't run AMX Mod X.

Darkwob 02-06-2019 11:13

Re: V.I.P System ( API + Web )
 
this working left 4 dead 2 ?

Natsheh 02-06-2019 11:46

Re: V.I.P System ( API + Web )
 
Quote:

Originally Posted by Darkwob (Post 2638419)
this working left 4 dead 2 ?

No this is an amxx section I can't make support for source mod plugin here...

So it won't work on left 4 dead 2.

kritikos 02-14-2019 05:03

Re: V.I.P System ( API + Web )
 
bug 1 : does not create the table "vips_global"

bug 2 : after you manually create the table, the vip does not work correctly because it has access to the flag letters, so most of the vips that have access to "t" can not be added.

bug 3 : after I corrected access2 no (and before that) I did test if the vip , while in the vip list it appears to be integration there is no access in the server to vip.

bug 4 : amx_addvip does not work properly in server.

Natsheh 02-22-2019 20:04

Re: V.I.P System ( API + Web )
 
Update :- (v2.0)

Read the change logs for more information.

kritikos 03-01-2019 10:02

Re: V.I.P System ( API + Web )
 
Plugins Bugs

Bug #1 Plugin dont find vip from database
logs [AMXX] 0 vips loaded from the database!

[AMXX] 0 vips are online
[AMXX] VIPs has been successfully reloaded!

database _global
name: test, auth: test1, password: test, access: t, expire: 03/31/2019 - 17:34:52, created: 03/01/2019 - 16:34:52
I do not know if works from "users_vip.ini" (i dont check)

Bug #2 I try to create file "users_vip_sql.ini" with database but server remove this file after change map

Bug #3 Command amx_addvip dont added nothing in database. (i have vip_save_type "1")

I would not be sure did not read the database but it creates the tables _global etc. so make the connection server in database.

Missing files "users_vip.ini" and "users_vip_sql.ini"

Website Fix Problems

need to change in file "admin_sm_av.php" line 244 this code $access2,"flags2" to this $access2,"vipaccess"

After need to go in this file "functions.inc.php" and add this code
"case 'vipaccess':
if(!preg_match("/^[b,i,t]{1,22}$/",$value)) { $msg="_ACCESSINVALID"; return false; }
return true;
break;"

after case 'amxxaccess' and before case 'flags2'

Database (i dont know if is bug or work okay) but after to add vip by website created a table with Server IP


I have not noticed anything else so far.
GL

Natsheh 03-05-2019 04:23

Re: V.I.P System ( API + Web )
 
I can assure you there is no bugs.

Server reads data from the table prefix comes with server ip + port, table global is for the Web configuration


Still it needs more optimization so the process make sense but for now there is no errors or bugs.

Also you cannot create users_vip_sql file its auto deleted on map change/start


Bug #3 the command expect strict arguments so make sure the user you are adding is connected also.


All times are GMT -4. The time now is 16:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.