func_water
Hello,
I need a small function that when players on terrorist team touch the entity func_water he are slapped 1 times all the 5 seconds. Thanks :wink: |
Re: func_water
Use register_touch, check team, and use user_slap
|
Re: func_water
Thanks ;) I try now
|
Re: func_water
PHP Code:
|
Re: func_water
register_touch( "player", "func_water", "myfunction" );
And in the callback, checking if player is a terro. Edit : It should work in your post. Otherwise, try to reverse in register_touch(). |
Re: func_water
PHP Code:
|
Re: func_water
You should add a cool down, touch can be called multiple times in a short time.
|
Re: func_water
PHP Code:
Line 41 = user_slap( id ); |
Re: func_water
user_slap ( index, power, [ rnddir ] )
|
Re: func_water
PHP Code:
|
| All times are GMT -4. The time now is 15:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.