AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   VIP System ( SQL Support ) (https://forums.alliedmods.net/showthread.php?t=335515)

Supremache 12-10-2021 15:08

VIP System ( SQL Support )
 
VIP System
https://img.shields.io/badge/Release...2021-%2392B06A https://img.shields.io/badge/Last%20...2022-%2392B06A

Table of contents:
DESCRIPTION
0
It work like admin system of AMX-MODX with optimized coding so you can create flags and assign to each flag some functions

How the SQL work ?
  • It loads data from sql and config files, if there is a vip account not in sql file, it will be saved there and all accounts will be stored, So all accounts will be read in both files.

You must to enable the include of geoip from the source to use these fields: $city$ , $country$ , $countrycode$ , $continent$ , $continentcode$
  • How to enable geoip include?
    • Open the source file and remove these // symbols before "#include <geoip>" from line 10

What to do when the date for a specific extra has expired?
  • 0 = ignore the entire line
  • 1 = put a "#" symbol in the beginning of the line
  • 2 = remove the entire line from the file

This adds can edit easly from VIPSettings file:
✓ Auto reload or command to reload vip
✓ Scoreboard
✓ Command for adding user to the vip file
✓ Connect message
✓ list vip's online
✓ Free vip time
Some pictures of the Buy Account (sub plugin):
  • ( Requirements : AMX-MODX v1.9+ )
https://i.ibb.co/m8MYrSY/buyvip2.png https://i.ibb.co/k1CyCT7/buyvip.png
API
0

Full documentation can be found there, as well in include file:
CHANGELOG
0
CREDITS
0

OciXCrom for CromChat also i added the same code of expiration date format from his plugin "ChatManager".
edon1337 I learned many things "elite admin system".
DOWNLOAD FILES ( https://www.gametracker.com/images/i...on16x16_gt.png Server using this plugin )
0
http://i.imgur.com/XzUpc.png DOWNLOAD SOURCE CODE

Supremache 12-10-2021 15:11

Re: VIP System
 
https://img.shields.io/badge/VIP%3A%...mage-%2392B06A

https://img.shields.io/badge/VIP%3A%...Head-%2392B06A

https://img.shields.io/badge/VIP%3A%...mor)-%2392B06A

https://img.shields.io/badge/VIP%3A%...peed-%2392B06A

https://img.shields.io/badge/VIP%3A%...dels-%2392B06A

https://img.shields.io/badge/VIP%3A%...%20)-%2392B06A

https://img.shields.io/badge/VIP%3A%...Jump-%2392B06A

https://img.shields.io/badge/VIP%3A%...Menu-%2392B06A

DJEarthQuake 12-10-2021 15:44

Re: VIP System
 
Looking forward.

Napoleon_be 12-11-2021 14:23

Re: VIP System
 
Meh... I don't know man. Like, really? Another VIP system? It's an honest question though. What made u think this would be a good idea of putting your time and effort into something that's been already made several times?

What makes this so different from all other VIP systems, let alone OciXCrom's VIP system?

Supremache 12-11-2021 18:43

Re: VIP System
 
We should make and remake the plugin's those has less options or hard coding or doesn't update.

Quote:

Originally Posted by Napoleon_be (Post 2765656)
What makes this so different from all other VIP systems, let alone OciXCrom's VIP system?

I focused on make something like AMX-MODX admin system but without module and have full api so i added the impportant things to the plugin like Description and make the code full optimized, Even though i don't know about "OciXCrom's VIP system"

Napoleon_be 12-11-2021 18:52

Re: VIP System
 
Not exactly the same, but same idea kinda https://forums.alliedmods.net/showthread.php?t=304480

Supremache 12-11-2021 19:04

Re: VIP System
 
Quote:

Originally Posted by Napoleon_be (Post 2765733)
Not exactly the same, but same idea kinda https://forums.alliedmods.net/showthread.php?t=304480

It's not the same, My plugin has a custom flags, that can let you use it like admin system but without module, you can create flags and assign to each flag some functions etc..

bigdaddy424 12-12-2021 23:34

Re: VIP System
 
Interesting idea.
How about the expiration date hour free?
You can set the hour as static 23:59:59 so you only need "MM/DD/YYYY" on the config file. Looks much cleaner IMO

Natsheh 12-13-2021 12:34

Re: VIP System
 
IMO this is useless instead of coming out with a new bright idea people release the same retarded stuff.

A tip don't waste your time on something dead and just move on with something new.

Supremache 12-14-2021 01:19

Re: VIP System
 
@bigdaddy424, Month/day/year?? Or you meant minute /hour/second, It's calling "free vip hours" it should be by hours and not by minute.

@Natsheh, If this is useless then i why i didn't found server without vip system, the vip system making the player special and making the server owners earning money so i remade it with adds more feature.

Supremache 12-14-2021 07:28

Re: VIP System
 
https://img.shields.io/badge/Update-...2021-%2392B06A
  • Create the connect message from VIPSetting.ini, if the message is empty, will not show.
  • Added fields %name% , %authid% , %flag% for connect message.
  • Control the time of task's from VIPSetting.ini.

Fraggor 12-21-2021 02:32

Re: VIP System
 
Hi @Supremache, thanks for the effort, but as @Napoleon_be said, it's not really that unique, so what i would like to suggest first is a sub-plugin for weapon menu with ability to configure & customize:

- the guns to add + armor + equipment + their order + color
- round to start allowing usage of the menu
eg. awp 3ed round - ak-47 2nd round etc...

- config maps prefix to disable the plug-in eg. de_* fy_*

- on/off checking for buyzone + a count down after each round start for ability to use a menu (to prevent abuse) + show in menu the count down like here (it just looks nice :D)

- vampire integration + screen fade on kill + configuration
- multi lang

ability to use Re-api

Supremache 12-21-2021 02:58

Re: VIP System
 
Quote:

Originally Posted by Fraggor (Post 2766598)
Hi @Supremache, thanks for the effort, but as @Napoleon_be said, it's not really that unique, so what i would like to suggest first is a sub-plugin for weapon menu with ability to configure & customize:

- the guns to add + armor + equipment + their order + color
- round to start allowing usage of the menu
eg. awp 3ed round - ak-47 2nd round etc...

- config maps prefix to disable the plug-in eg. de_* fy_*

- on/off checking for buyzone + a count down after each round start for ability to use a menu (to prevent abuse) + show in menu the count down like here (it just looks nice :D)

- vampire integration + screen fade on kill + configuration
- multi lang

ability to use Re-api

I know it is not unique but has more optimized, I have 10 days before back to the university i will create the sub plugins but there are some things i didn't understand i want more details about them so i will create the plugin and you can ask for addtions

About Re-api i used it but i don't like it i want the plugin be simple and optimized using original modules of amxmodx because if there are some one doesn't have idea about it will ask alot for how to complie the plugin.

Supremache 12-21-2021 07:22

Re: VIP System
 
2 Attachment(s)
@Fraggor;
You need this include file to complie this plugin

How this work ? it's like Weapons Menu Creator that created by @HamletEagle but with more features and optimizing the code.
1. You can edit the weapon name that show in the menu from the confing file with colors ex: "\rAK 47 \yKLASHINKOFE"
2. Make the weapon show only for X team
3. Add armor reward when geting the weapon
4. Access weapon: work for admin system and vip system, Cvar control cw_access_type " " ( 1 = vip system | 0 = admin system )

How to create the weapon ?
Example: "Weapon name" "weapon_id" "Weapon Bullet" "Armor reward" "Weapon Team" "Weapon Access"
- You can create the weapon without TEAM - ACCESS - Armor position
"XM1014 Shot-gun" "weapon_xm1014" "255" "300" "0" "a"

Fraggor 12-22-2021 06:37

Re: VIP System
 
thanks, i like the result so far, the config is pretty customizable, can you add in the "CustomWeapons.ini" something like:

- ability to change weapon giving method eg. GT_DROP_AND_REPLACE
- ability to change armor with or without helmet
- ability to give multiple weapons in one menu eg. weapon_xm1014;weapon_deagle img

a new category called something like auto give on spawn with ability to :
- customize auto give weapon/utilities/armor on spawn eg. always give deagle after spawn

btw there's no check for vip flag, menu will open regardless, not sure if that's intentional (though it's only for the weapon menu)
also, i've tried to set a password in "VIPAccount.ini" but i got "you have no access", am not sure about the way to set the password on the client, because the command setinfo "password"
is a wrong syntax, so for now i've set that field to empty

are you planing on implementing any of the suggestions that i mentioned ?

*Edit:
Quote:

i didn't understand i want more details about them
sorry i am not the best at expressing what i want, Please feel free to Quote me on anything the you didn't understand, i will gladly try to rephrase my sentences.

Supremache 12-22-2021 11:40

Re: VIP System
 
Quote:

Originally Posted by Fraggor (Post 2766677)
- ability to change weapon giving method eg. GT_DROP_AND_REPLACE

I dont understand !!

Quote:

Originally Posted by Fraggor (Post 2766677)
- ability to change armor with or without helmet.

Well, i gonna make it like "Armor Enable vest|helm" ex: "100 1" = 100 armor with vest and helmet

Quote:

Originally Posted by Fraggor (Post 2766677)
- ability to give multiple weapons in one menu eg. weapon_xm1014;weapon_deagle img

This mean i should do remake for the plugin with less options

Quote:

Originally Posted by Fraggor (Post 2766677)
a new category called something like auto give on spawn with ability to :
- customize auto give weapon/utilities/armor on spawn eg. always give deagle after spawn

if you want this addition then why you asked for the weapon menu !, actually the menu open automatic per spawn

Quote:

Originally Posted by Fraggor (Post 2766677)
btw there's no check for vip flag, menu will open regardless, not sure if that's intentional (though it's only for the weapon menu)

It's work like: if user doesn't have the weapon access will see it but can't get it and will show this message "Unavailable weapon."

Quote:

Originally Posted by Fraggor (Post 2766677)
also, i've tried to set a password in "VIPAccount.ini" but i got "you have no access", am not sure about the way to set the password on the client, because the command setinfo "password"
is a wrong syntax, so for now i've set that field to empty

Huh ?
There's no issues in the plugin.
Sure you have the same password of admin, sure you put the fourth sections of user, check error logs,
Method: setinfo_ pw "The password"

Fraggor 12-23-2021 03:14

Re: VIP System
 
Quote:

Originally Posted by Fraggor (Post 2766677)
- ability to change weapon giving method eg. GT_DROP_AND_REPLACE
Quote:

Originally Posted by Supremache (Post 2766695)
I dont understand !!


sorry that's a reapi parameter for the function rg_give_item link

Quote:

Originally Posted by Fraggor (Post 2766677)
- ability to give multiple weapons in one menu eg. weapon_xm1014;weapon_deagle img
Quote:

Originally Posted by Supremache
This mean i should do remake for the plugin with less options


idk it would be just faster/easier if you just pressed one button instead of 2 menues, for example like in this menu img, i would say that's pretty customizable.

Quote:

Originally Posted by Fraggor
a new category called something like auto give on spawn with ability to :
- customize auto give weapon/utilities/armor on spawn eg. always give deagle after spawn
Quote:

Originally Posted by Supremache
if you want this addition then why you asked for the weapon menu !, actually the menu open automatic per spawn


you are correct, but remember about the time limit for menu's items access ?
maybe someone is afk for the first (10 secounds), so if they spawn with deagle/armor/grenades it would be a bit less painful for them to play that round, thats what i was thinking about

Quote:

Originally Posted by Fraggor
btw there's no check for vip flag, menu will open regardless, not sure if that's intentional (though it's only for the weapon menu)
Quote:

Originally Posted by Supremache
It's work like: if user doesn't have the weapon access will see it but can't get it and will show this message "Unavailable weapon."


Yes you're correct, i was testing the old sma file in my initial post, it's working fine now

Quote:

Originally Posted by Supremache
Huh ?
There's no issues in the plugin.
Sure you have the same password of admin, sure you put the fourth sections of user, check error logs,
Method: setinfo_ pw "The password"

i see, u mean there's "_passwordkey" "password"
you might want to add it to the "VIPAccount.ini" to avoid confusion
Code:

"Name|AuthID" "_pw" "Password" "Flags" "Expire Date"
after testing the new sma here, unless the the field "Weapon Access" in "CustomWeapons.ini" is empty the menu won't give me the weapon

Supremache 12-23-2021 03:38

Re: VIP System
 
I created it like that for who using zp/ze/.. mod would be better but it's okay i will remake it to which style you want.
P.s: the menu is checking if player has get the weapon or not, if he has the weapon and tried to get open the menu will show this msg "You have already chosen your weapons."
How to create an account:
// Name or steamid // Pw // flags //Expiredate ( 0 = permanent )
"Pro" "123+" "abcdefghijklmnopqrstuvwxy" "12/31/2022 00:00:00"
"STEAM_:0:1 99999999" "123+" "abcdefghijklmnopqrstuvwxy" "12/31/2022 00:00:00"


How to sign in : type in the console setinfo _pw "Your password"

Supremache 12-24-2021 05:49

Re: VIP System
 
2 Attachment(s)
The menu has three features:
1. Pistols type when i select this option the pistols do switch
2. Armor type when i select this option the armor type do switch between "Vest and helm or nothing"
3. Nade type etc...

Something similar:

https://i.imgur.com/AORSSHd.png

All info in the configuration file:

Fraggor 01-02-2022 21:37

Re: VIP System
 
Many Thanks @Supremache,appreciate the effort, Sorry for the late Reply, was a bit busy lately.

Supremache 01-05-2022 12:45

Re: VIP System
 
https://img.shields.io/badge/Update-...2022-%2392B06A
  • Added %expiredate% field for connect message
  • Added native get_vip_expire( id, buffer, ilen ) for return the vip expire date.

thebest24 01-19-2022 11:19

Re: VIP System
 
amaizing work!

Supremache 01-26-2022 11:50

Re: VIP System
 
Someone reported me in private for some issues on this plugin in connect message function and vip list, i tested the plugin and doesn't get any issue so if there is someone who used it tell me if you got any problem.

I doing update for this plugin and doing optimize for the code if any one need a new adds or report please say that before upload a new version.

P.s: if you got any problem when using this plugin, please report here.

Supremache 02-13-2022 19:31

Re: VIP System
 
https://img.shields.io/badge/Update-...2022-%2392B06A
  • Code Optimized.
  • Create account file from "VIPSettings.ini" file
  • If the user has expired or is disabled, it will not be read from the file
  • Added support for IP, now you can add user by IP
  • Added has_vip_flag( id, szFlag[ ] ) for returns if the client has any of the specified vip flags.
  • Added has_all_vip_flags( id, szFlag[ ] ) for returns if the client has any of the specified vip flags or multi flags.
  • Added a log that show how many accounts in the file.

Supremache 02-14-2022 18:09

Re: VIP System
 
https://img.shields.io/badge/Update-...2022-%2392B06A
  • Fixed a bug when free vip time started it was given a random access or full access for everyone.

Follow this post, i will create some sub plugins

Dyaus 02-14-2022 18:40

Re: VIP System
 
oh wow i just discovered this , GOLD !! (from a beginner's POV at least) , i was having trouble trying to add functions to other vip plugins like arnaas' plugin (no offense his plugin was top notch too) , but this is much simpler and has a much wider range of flags i can add perks to , i'm thinking about using arnaas' one for zp since i already integrated it into my offline sv , but i i want to create a knife arena / zombie darkness (CSO) mod in future , i might just use this for them .
anyways i went a bit off topic there , very nice plugin , expect an invite to server when i start using it in the future ( although still far in the future xd )

Supremache 02-16-2022 17:44

Re: VIP System
 
@Dyaus, Thanks :)

https://img.shields.io/badge/Update-...2022-%2392B06A
  • Added option for file to enable or disable VIP auto reload.
  • Added console command to reload VIPs, It's work only if you disable option auto reload

Check out these sub plugins

maNIaRO 03-19-2022 01:42

Re: VIP System
 
Hello there,
Nice plugin. It works also on CSDM mode?

And one question though, maybe I've missed it but, what are the flags for vip only?

I mean in VipAccounts you can put all flags as for admins also, but which flags are only for vips?

Supremache 03-19-2022 04:15

Re: VIP System
 
Quote:

Originally Posted by maNIaRO (Post 2774662)
Hello there,
Nice plugin. It works also on CSDM mode?

And one question though, maybe I've missed it but, what are the flags for vip only?

I mean in VipAccounts you can put all flags as for admins also, but which flags are only for vips?

Quote:

Nice plugin. It works also on CSDM mode?
Yes, it works on any mod

Quote:

And one question though, maybe I've missed it but, what are the flags for vip only?

I mean in VipAccounts you can put all flags as for admins also, but which flags are only for vips?
It work like admin system of AMX-MODX, you can create flags and assign to each flag some functions
For example: If you added bunny hop plugin for flag "A" and added multi-jump for flag "B" so you can choose who will get these features so if you put the flag "A" you will only get the bunny hop etc...

Supremache 06-14-2022 17:54

Re: VIP System
 
https://img.shields.io/badge/Update-...2022-%2392B06A
  • Fixed some issues
  • Added SQL Support ( MySQL & SQLlite )
  • Added forwards for adds VIPS
  • Added forwards for the VIP event
  • Added Lang file
  • Added Geoip support to use more fields like Country, City, etc...
  • Added an options in the configuration file to control the expiration date ( "Remove", "Put comment", "Unread" )
  • Added more settings in the configuration file ( Check it out )
  • Added native "get_expire_type" returns the expiration date format from the configuration file
  • Added native "reload_vip" reload the configuration file
  • Replaced these two natives "get_vip_expire" - "is_free_vip_time" by "get_expire_date" - "is_event_time"
  • Created a new sub-plugin to buy a VIP account by money ( Requirements : AMX-MODX v1.9+ )

Some pictures of the Buy Account:
https://i.ibb.co/m8MYrSY/buyvip2.png https://i.ibb.co/k1CyCT7/buyvip.png

LiZou Mapper 07-11-2022 22:51

Re: VIP System ( SQL Support )
 
Cool!!

bigdaddy424 07-17-2022 19:00

Re: VIP System ( SQL Support )
 
Can you add PHP CRUD to this? It'd be much better to manage VIPs via some panel

Supremache 07-19-2022 15:58

Re: VIP System ( SQL Support )
 
Quote:

Originally Posted by bigdaddy424 (Post 2784013)
Can you add PHP CRUD to this? It'd be much better to manage VIPs via some panel

Yes, i can but i dont have computer.

Natsheh 07-19-2022 16:36

Re: VIP System ( SQL Support )
 
Quote:

Originally Posted by bigdaddy424 (Post 2784013)
Can you add PHP CRUD to this? It'd be much better to manage VIPs via some panel

Check this https://forums.alliedmods.net/showthread.php?t=312953

IC3k1ng 03-15-2023 18:40

Re: VIP System ( SQL Support )
 
I really wanna use this plugin but i have an issue, i got a shop to buy ranks like VIP or Admin that requires Real money, but i don't wanna add that thing that you can get vip with points in the server, so how can i disable it? Also, is there any form to add or quit vip rank to somebody at the console? Regards.


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

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