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


All times are GMT -4. The time now is 20:12.

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