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

[CS:GO] VIP plugin problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bakusiovskyyyy
Junior Member
Join Date: Nov 2017
Location: Poland
Old 12-25-2017 , 07:04   [CS:GO] VIP plugin problems
Reply With Quote #1

Hello, I`ve a little problems with my VIP plugin...
For first I`ve had to delete #pragma newdecls required from my code to use new String:szClanTagName[32];, how can I declare this in "new style"?
Second thing is after team change, user doesn`t get privileges when I`m using player_spawn event. I think to change player_spawn to OnRoundStart maybe? What you think?
Any ideas? :/
bakusiovskyyyy is offline
Luckiris
AlliedModders Donor
Join Date: Apr 2017
Location: Dijon, Burgundy, France
Old 12-25-2017 , 10:24   Re: [CS:GO] VIP plugin problems
Reply With Quote #2

For your first problem, it should work :

PHP Code:
#pragma newdecls required

char szClanTagName[32]; 
For your second problem, what do you mean "user doesn`t get privileges" on the event player_spawn ? Could you explain more or show us your code ?
__________________
Luckiris is offline
bakusiovskyyyy
Junior Member
Join Date: Nov 2017
Location: Poland
Old 12-25-2017 , 13:35   Re: [CS:GO] VIP plugin problems
Reply With Quote #3

I`m not sure it will work, because I need to use StrEqual for checking users` clan tag :/

Here is code: https://github.com/bakusiovskyyyy/vi...domwariatow.sp

About second thing... Everything works fine but when the teams change, in first round of second half VIP`s aren`t getting extra money, tag etc, it looks like an normal player and not vip :/

//And sorry for my weak english xD

Last edited by bakusiovskyyyy; 12-25-2017 at 13:35.
bakusiovskyyyy is offline
Luckiris
AlliedModders Donor
Join Date: Apr 2017
Location: Dijon, Burgundy, France
Old 12-25-2017 , 13:56   Re: [CS:GO] VIP plugin problems
Reply With Quote #4

It should work, just add again

PHP Code:
#pragma newdecls required 
then replace

PHP Code:
new String:szClanTagName[32]; 
by

PHP Code:
char szClanTagName[32]; 
It will work with StrEqual(). https://sm.alliedmods.net/new-api/string/StrEqual

Your code seems okay to me so try to print the value in the chat of the server to check.
__________________
Luckiris is offline
bakusiovskyyyy
Junior Member
Join Date: Nov 2017
Location: Poland
Old 12-25-2017 , 14:46   Re: [CS:GO] VIP plugin problems
Reply With Quote #5

Works fine, thank you

Second thing seems to work now but it`s randomly what`s stranger... Anyway, now it`s working so less with that
bakusiovskyyyy 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 20:31.


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