Raised This Month: $ Target: $400
 0% 

freeze player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-19-2017 , 19:24   Re: freeze player
Reply With Quote #5

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:
if(get_user_freeze(id)) 
- If he's not freezed

PHP Code:
if(!get_user_freeze(id)) 
2. For set/unset a completely freeze ( duck, weapon change, jump, shot and scope change )

- For set

PHP Code:
set_user_freeze(playeridtrue2
- For unset

PHP Code:
set_user_freeze(playeridfalse
3. For set/unset normal freeze ( only speed )

- For set

PHP Code:
set_user_freeze(playeridtrue1
- For unset

PHP Code:
set_user_freeze(playeridfalse
Attached Files
File Type: sma Get Plugin or Get Source (freeze.sma - 883 views - 2.2 KB)
File Type: sma Get Plugin or Get Source (FreezeTest.sma - 782 views - 845 Bytes)
File Type: inc freeze.inc (342 Bytes, 262 views)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-19-2017 at 20:01.
EFFx is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode