Raised This Month: $51 Target: $400
 12% 

[Any][MySQL] tVip (2.3 | 04-04-21) - The simplest to use Vip Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-14-2017 , 18:13   Re: [Any][MySQL] tVip (1.2 | 13-01-17) - The simplest to use Vip Manager
Reply With Quote #41

Quote:
Originally Posted by greenharjo View Post
Hi there, I installed this plugin and got everything to work in TF2. I have it on MySQL; so far everything works fine except that I've set the flags in the cfg and still can't figure out how it can link with custom chat colors and admin overrides. I have made sure the flags in both cfgs are set to the one set in the tVip cfg. Once I have added VIPs, they do not have access to commands set to their flags including custom tags.
sm_who <playername>

if the flag is displayed then the plugin is working correctly
if the flag is not displayed you configured the plugin incorectly
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-20-2017 , 01:56   Re: [Any][MySQL] tVip (1.2 | 13-01-17) - The simplest to use Vip Manager
Reply With Quote #42

Hey Totenfluch, any way to allow sm_addvip be used by console?

Code:
L 03/20/2017 - 00:48:55: [SM] Exception reported: Client index 0 is invalid
L 03/20/2017 - 00:48:55: [SM] Blaming: tVip.smx
L 03/20/2017 - 00:48:55: [SM] Call stack trace:
L 03/20/2017 - 00:48:55: [SM]   [0] GetClientAuthId
L 03/20/2017 - 00:48:55: [SM]   [1] Line 339, G:\sourcemod 1.8\scripting\tVip.sp::grantVipEx
L 03/20/2017 - 00:48:55: [SM]   [2] Line 150, G:\sourcemod 1.8\scripting\tVip.sp::cmdAddVip
Also, this is more of a quality of life/feature request, could you add a sm_removevip command (also that could be used by console)?

Thanks!
__________________
sneaK is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-20-2017 , 16:23   Re: [Any][MySQL] tVip (1.2 | 13-01-17) - The simplest to use Vip Manager
Reply With Quote #43

Quote:
Originally Posted by blackhawk74 View Post
Hey Totenfluch, any way to allow sm_addvip be used by console?

Code:
L 03/20/2017 - 00:48:55: [SM] Exception reported: Client index 0 is invalid
L 03/20/2017 - 00:48:55: [SM] Blaming: tVip.smx
L 03/20/2017 - 00:48:55: [SM] Call stack trace:
L 03/20/2017 - 00:48:55: [SM]   [0] GetClientAuthId
L 03/20/2017 - 00:48:55: [SM]   [1] Line 339, G:\sourcemod 1.8\scripting\tVip.sp::grantVipEx
L 03/20/2017 - 00:48:55: [SM]   [2] Line 150, G:\sourcemod 1.8\scripting\tVip.sp::cmdAddVip
Also, this is more of a quality of life/feature request, could you add a sm_removevip command (also that could be used by console)?

Thanks!
Done
https://github.com/Totenfluch/tVip/c...6ff49f2b6ebd4d
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-20-2017 , 17:04   Re: [Any][MySQL] tVip (1.2 | 13-01-17) - The simplest to use Vip Manager
Reply With Quote #44

Quote:
Originally Posted by Totenfluch View Post
Beautiful, thank you!

This is an incredibly helpful way to add user flags without directly modifying any admin config file or making it messy within sourcebans.

Thought of another possible helpful feature: When using sm_addvip, if a player already has an existing duration of VIP, it would stack. For example, if Player 1 has 1 month of VIP, using sm_addvip <player 1, etc> for 1 month, it would add another month, now Player 1 would have 2 months of VIP.
__________________

Last edited by sneaK; 03-20-2017 at 17:08.
sneaK is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-20-2017 , 17:24   Re: [Any][MySQL] tVip (1.2 | 13-01-17) - The simplest to use Vip Manager
Reply With Quote #45

Quote:
Originally Posted by blackhawk74 View Post
Beautiful, thank you!

This is an incredibly helpful way to add user flags without directly modifying any admin config file or making it messy within sourcebans.

Thought of another possible helpful feature: When using sm_addvip, if a player already has an existing duration of VIP, it would stack. For example, if Player 1 has 1 month of VIP, using sm_addvip <player 1, etc> for 1 month, it would add another month, now Player 1 would have 2 months of VIP.
Actually it does that already. (https://github.com/Totenfluch/tVip/b...r/tVip.sp#L382)

Just fixed some errors that could occur when using it that way

https://github.com/Totenfluch/tVip/c...993aef062f64b6

NOTE: All Changes are untested(!)
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 03-20-2017 at 17:25.
Totenfluch is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-20-2017 , 17:34   Re: [Any][MySQL] tVip (1.2 | 13-01-17) - The simplest to use Vip Manager
Reply With Quote #46

Quote:
Originally Posted by Totenfluch View Post
Actually it does that already. (https://github.com/Totenfluch/tVip/b...r/tVip.sp#L382)

Just fixed some errors that could occur when using it that way

https://github.com/Totenfluch/tVip/c...993aef062f64b6

NOTE: All Changes are untested(!)
Oop, didn't notice that, nice. I'll test it out in a few hours and let you know if it all works as it should.
__________________
sneaK is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-20-2017 , 20:20   Re: [Any][MySQL] tVip (1.6 | 31-03-17) - The simplest to use Vip Manager
Reply With Quote #47

Everything seemed to work out well, with the exception of one thing. I'm mainly looking to use this for CS:GO, but CS:GO uses STEAM_1: instead of STEAM_0, so each player would need to be added with STEAM_1. I know this may be a bit specialized, but is there any way to recognize clients in csgo with STEAM_0, or insert as STEAM_1, even if typed in with STEAM_0? Would solve many headaches.

Edit: I tried by switching auth type to AuthId_SteamID64, but to no avail (I'm assuming Steam2 format is the only way csgo can get?)
__________________

Last edited by sneaK; 03-20-2017 at 20:58.
sneaK is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-21-2017 , 03:26   Re: [Any][MySQL] tVip (1.6 | 31-03-17) - The simplest to use Vip Manager
Reply With Quote #48

No Time today will do it tomorrow - something along the lines of
PHP Code:
Replace:
GetClientAuthId(clientAuthId_Steam2playeridsizeof(playerid));
with:
GetClientAuthIdCustom(clientAuthId_Steam2playeridsizeof(playerid));

that does

GetClientAuthId
(clientAuthId_Steam2playeridsizeof(playerid));
playerid[6] = '1'
EDIT: You want this for the Command don't you?
in this case: same as above but instead of replaceing the SteamID like above we need to do the same with the command argument input

not sure about the syntax in sourcePawn tho. If that doesn't work we can do a
PHP Code:
ReplaceString 
-> STEAM_0 TO STEAM_1 
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 03-21-2017 at 07:55.
Totenfluch is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-22-2017 , 01:43   Re: [Any][MySQL] tVip (1.6 | 31-03-17) - The simplest to use Vip Manager
Reply With Quote #49

Unfortunately wasn't able to get that to work

Ideally this would work for every game that uses STEAM_1 auth instead of STEAM_0 (CS:GO, and I believe L4D/L4D2?).

Edit: It would actually probably be best to read a wildcard 0 or 1, that way even if a player is added to the VIP system with a 0 or 1, either way it sees them properly.
__________________

Last edited by sneaK; 03-22-2017 at 01:44.
sneaK is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-22-2017 , 05:20   Re: [Any][MySQL] tVip (1.6 | 31-03-17) - The simplest to use Vip Manager
Reply With Quote #50

the best way to solve this would be to use zephs solution for it

https://github.com/dvarnai/store-plu...store.sp#L2289

we just store the SteamID starting at the 8th character so the id looks like X:XXXXXXXX

unfortunatly we have to use another database structure for this and convert/rebase the old database.
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 03-22-2017 at 05:20.
Totenfluch is offline
Reply



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

Forum Jump


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


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