Cvar setting problem
1 Attachment(s)
Hi , I need help with setting some cvars . Here is the part of a plugin:
public svm_item_on( iPlayer, iItemIndex, bool:iPluginON) { Quote:
and this : else bhop_auto 0 Thanks 4 help :) ////(My script can be find at the bottom of the plugin)//// |
Re: Cvar setting problem
Try to use set_pcvar_num( ).
Code:
|
Re: Cvar setting problem
Quote:
|
Re: Cvar setting problem
Quote:
So, use server_cmd( ). |
Re: Cvar setting problem
Quote:
Is it possbile that each player can have enable different cvar??? |
Re: Cvar setting problem
Code:
Try this. |
Re: Cvar setting problem
Quote:
|
Re: Cvar setting problem
Show whole code.
|
Re: Cvar setting problem
1 Attachment(s)
Quote:
And now the Bunny Hop plugin : (Im gonna post the original) : http://forums.alliedmods.net/showthread.php?p=610329 And now I will tell you how I want to use this plugin : The Bunny Hop will be enabled for all players . But , when VIP(and admins) player write /vipmenu to the chat , he can disable the Bunny-Hopping in the menu (only for him)..... Thats all..... VIPmenu is coded in vip plugin And I have got error messages like this : 41.: loose identation , invalid expression assumed zero. etc... |
Re: Cvar setting problem
You have to add a case in the menu which enable/disable the bunny hop to VIP's and, in the menu handler, add thing like :
Code:
Don't forget to add a booléen. |
| All times are GMT -4. The time now is 23:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.