set_user_maxspeed
hi,
i tried to define 2 teams. team catcher & team fleer. every round willbe start a countdown and the catchers are while the countdown freeze.( should be freeze ) the problem : users can change the weapon to run.i tried to set the maxspeed @ curweapon but happend nothing. here the full code. i hope anyone can say me why it's so PHP Code:
|
Re: set_user_maxspeed
PHP Code:
Off-Topic: Shouldn't it be PHP Code:
|
Re: set_user_maxspeed
Fixed :D
both are the same ( the same function ) added new bool. for other ppl. who maybe will search for the same problem :D PHP Code:
|
Re: set_user_maxspeed
cs_get_user_team(id) & CS_TEAM_T
is not the same as cs_get_user_team(id) == CS_TEAM_T It may provide the same result you need since 1/2 (T/CT) are individual bits and a team cannot be a bitsum. But it will not work properly if you try & CS_TEAM_SPECTATOR. |
Re: set_user_maxspeed
oh :P i tough both are the same :D
do i need to change it to == ? |
Re: set_user_maxspeed
I don't see any reason not to, if it has the possibility to cause confusion.
|
Re: set_user_maxspeed
Quote:
|
Re: set_user_maxspeed
Use HAM instead of CurWeapon for more efficienty
PHP Code:
|
Re: set_user_maxspeed
yay. done & ty
i have a new question but i will open a new thread for this :D |
| All times are GMT -4. The time now is 08:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.