maxspeed reset?
I am trying to freeze the whole ct team for 5 seconds. I wrote this:
PHP Code:
BUT, when i implement the same idea into my mod (a big plugin), it doesn't seem to work. So what i am asking is when will the user speed be reset (or changed)? Maybe something is interfering with it. Posting the whole code won't help, cause its 4000+ lines. |
Re: maxspeed reset?
To freeze people, you should not use speed to do it. You should use pev_flags:
PHP Code:
Quote:
|
Re: maxspeed reset?
1 Attachment(s)
if i use set_pev then the player won't be able to fire and inflict damage. That's why i went with maxspeed.
Here you go, and i don't lie (look at the picture) |
Re: maxspeed reset?
Quote:
Quote:
I don't think fysiks was talking about how many lines your plugin is. I think he was talking about you saying " posting the whole code wouldn't help". |
Re: maxspeed reset?
Oh okay.
Is thereany other way of freezing a player ad that he can still shoot and inflict damage? |
Re: maxspeed reset?
To block players, set speed to 1.0, not 0.1.
Hook Ham_CS_Player_ResetMaxspeed and block it when player is blocked. To reset speed just set the variable 'block[ player_index ]' to false and call Ham_CS_Player_ResetMaxspeed. Don't bother with CurWeapon !! |
Re: maxspeed reset?
Okay great and thanks.
I will try it when i get back home. |
Re: maxspeed reset?
It's not working i guess, and i am pretty sure i made something wrong.
Here is what i wrote: PHP Code:
|
Re: maxspeed reset?
bump: please help?
|
Re: maxspeed reset?
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 20:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.