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

native or cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 04-14-2018 , 17:12   native or cvar
Reply With Quote #1

Hey,
I want to link two of my plugins. I had 3 ways.
1. Make both the plugins into single but making it too dirty it the sense of readability.
2. Make a cvar and change its value and get its value and operate as per it.
3. Use native.

Now, is 1 a good option ? If not, which is better in 2 and 3 ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-14-2018 , 17:16   Re: native or cvar
Reply With Quote #2

Depends on the plugins..
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ish12321
Veteran Member
Join Date: May 2016
Old 04-14-2018 , 17:24   Re: native or cvar
Reply With Quote #3

Hmm.
Is using natives a good idea if you've a option to sum up two plugins ? The plugins are quite different. One is weapons war plugin and another is vip featuresp plugin
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-14-2018 , 17:26   Re: native or cvar
Reply With Quote #4

Personally I use natives. I dump the code on the main plugin and register the natives via an include file. Can you explain your project or what are you aiming about? I mean, others can suggest better ways or somethin.
__________________
Relaxing is offline
ish12321
Veteran Member
Join Date: May 2016
Old 04-14-2018 , 17:28   Re: native or cvar
Reply With Quote #5

My vip features plugin gives free nades to everyone on round start which conflicts with my self made weapons war plugin. I use RG_CBasePlayer_HasRestrictItem in weapons war. So I was thinking to disable giving nades when weapons war is on
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-14-2018 , 18:08   Re: native or cvar
Reply With Quote #6

You basically need a native which returns the current state of weapon war round.
__________________
Relaxing 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 04:12.


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