Help with concmd and knife only thing.
im newb and have made this plugin, and i'm wanting to add a knife function so that you can only go fast with a knife out if the knife cvar is turned on.
i also need help with amx_nosmod so that it toggles the sv_nosmod on and off. also could i get some help adding a timming function to it please, say that it only last's bout 3 seconds then takes 10 seconds to load. thanks a bunch. could you please also tell me what you did to it? Code:
|
- use code indentation
- cs_get_weapon_id(id)==CSW_KNIFE is incorrect since cs_get_weapon_id returns weapon's entity id but not weapon id - use set_cvar_num to set sv_maxspeed - set_user_maxspeed(id, 0.0) default player entity speed is 250.0 but not 0.0 |
Replace this:
Code:
Code:
As for your other two functions: Code:
Of course you're going to need to do more to get it perfected. |
thank's.
the nos_on and nos_off stuff works fine, but if i put sv_nosmod_knife 1 it doesn't work at all. so i need to do something there sorry but im still ... a little noob. but it works well when a user press +nos and then when they let go they stop that goes awesome but when i enable knifemode for it then it doesn't do anything at all, doesn't even print client message. |
Quote:
also it says in the docs that set_user_maxspeed(id,0.0) will set it back to defualt. and the sv_maxspeed changes quite well at the moe :) but if i wanted to do it as cvar num i just do as set_cvar_string("sv_maxspeed",1500) ? |
| All times are GMT -4. The time now is 16:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.