freeze player
I searched and searched and i couldnt find anywhere.....
something like set_user_freeze (but its not that, i know :D) Example, on command say /freezeme i cant move anywhere, but i can look around. Code:
register_clcmd("say /freezeme", "freezeMe") |
Re: freeze player
|
Re: freeze player
I made this with .inc file if you want:
1. Main plugin: PHP Code:
Code:
#if defined _freeze_included3. Example usage: - If you want only to change the player's speed to 0 PHP Code:
PHP Code:
PHP Code:
EDIT: Maybe you shoud use the Natsheh's link. |
Re: freeze player
Im sorry.... but what should i do with those codes you gave me... first INC code.. i need to compile it somewhere or what... I dont know :D If you could explain step by step.. i would be greatful.
|
Re: freeze player
3 Attachment(s)
freeze.inc - Put it into the include folder in addons/amxmodx/scripting
freeze.sma - Compile it normally and put in plugins folder, guess I don't need to explain where it's. FreezeTest - Same as freeze.sma Tested and it works, only the view block wont block. Step by step: 1. For check if the player is/ain't freezed. - If he's freezed PHP Code:
PHP Code:
- For set PHP Code:
PHP Code:
- For set PHP Code:
PHP Code:
|
Re: freeze player
EFFx, add a reset user maxspeed native.
|
Re: freeze player
Isn't the speed turning back when the user type /unfreeze?
|
Re: freeze player
Mm, yeah, I did not see this little detail.
Don't is more easy and usefull set_user_maxspeed from fun? Your code have a problem. If you unset freeze while round is freezed, the player will be allowed to move. |
Re: freeze player
I'll check these issues. About set_user_maxspeed(), I don't like to hook CurWeapon, so...
|
Re: freeze player
|
| All times are GMT -4. The time now is 23:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.