cvar not working
This is my first plugin. I just did this to learn, do plz don't tell me that this has already been done because I know. Anyway, with much help from Bailopan, I got this plugin working on everything except the part where it spaces out the slaps using the cvar amx_bslaptime. Instead, it just does them very rapidly, probably at 10 per second or more.
Code:
|
I think it isn't working because you didn't show the cvar in your code , try this :
Code:
|
Uhh, sry bout my annoying nubness, but do I have to put anything where you put that //code here comment? Thanks.
|
You're calling a function slap_player to do the actual slapping which dosn't exist.
You need to add something like this to your plugin: Code:
you may also need to use get_cvar_float to read the cvar rather than get_cvar_num Code:
|
ok, thanks, I got it working.
|
Ok, now I want to have it take a user defined value for the delay and if one is not givin, it will use the cvar, but what I am putting in does not work.
Code:
|
| All times are GMT -4. The time now is 14:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.