blocking jump and duck in prethink
hi,
this is my prethink code: Code:
|
Looks like you answered your own question.
If that doesn't solve it, try setting the entity's button to IN_CANCEL, like this: Code:
|
thanks!
but i tryed that: Code:
|
The best antijump way for me is set player gravity to something high.
It's better than prethink velocity method. Compare and you'll see what i'm talking about. But be careful such gravity could kill player on non-plain surface (stairs, etc). So you can use any method. It's depen on the purpose. About jump block. I do not think there are a good way. You can send "-duck" command to the client but it wouldn't affect instantly. |
Although I've never tried it before, you could also try setting their z velocity (cell 2 I believe) to the negative abs of itself.
|
Make sure that the incar variable is getting set to something other than 0 for that player's index.
|
You would probably want something like this:
Code:
That will block jump, duck, use, attack, attack2, strafe left, and strafe right when someone is in a car. |
didnt work charr,
and the other jump code blocked me from wall-jumping too, ur code doesnt |
Try this, I have no time nor do I have a compiler, online one is slow (announcements are on, I'm at school)
Code:
|
thanks hawk,
but what include is needed for round()? im using amxmisc,amxmodx,engine and fun |
| All times are GMT -4. The time now is 20:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.