Quote:
|
Originally Posted by VEN
- 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
|
also thanks i'm wasn't too sure bout cs_get_weapon_id so yea thanks.
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)
?
__________________