[ H3LP ] Stock to freeze/unfreeze player ?
Hey, I need a stock to freeze/unfreeze a player but don't freeze he camera. Anyone ?
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
Set his speed to zero hook pre primary & secondary attack, set his next primary & second attack delay to get_gametime + 99999 then return max value
Or use set_pev(id, pev_flags, pev(id, pev_flags)|FL_FROZEN) |
Re: [ H3LP ] Stock to freeze/unfreeze player ?
Trying...
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
Code:
Code:
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
While passing 1/0 will work, you should just use true/false since bFrozen is tagged as bool(to be consistent).
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
Well, the frozen work, but this stock is blocking to move the camera. I think I need do something like of natahe have said.
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
example:
PHP Code:
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
Well, with some modifications, thats work.
Thanks, solved. |
Re: [ H3LP ] Stock to freeze/unfreeze player ?
here try this ...
PHP Code:
|
Re: [ H3LP ] Stock to freeze/unfreeze player ?
I dont need support to weapons, but your code work also. Thanks ! :D
|
| All times are GMT -4. The time now is 17:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.