Raised This Month: $ Target: $400
 0% 

Aim Freeze


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-03-2011 , 12:54   Aim Freeze
Reply With Quote #1

Aim Freeze v0.0.4

Description
An admin (flag definable), which have bind a key for using "freeze" command, can aim a player and freeze/unfreeze him.
A freezed player cannot move, shot, [ jump , take weapons (excepted knife) , and move mouse ] ( [ ] -> definable by cvar )

Command
bind < key > "freeze"
-> Require admin flag (default : ADMIN_KICK) definable on line X (#define ADMIN_ALLOWED)
-> Freeze/Unfreeze a player

Cvars
af_distance < value > - Distance max between aimer and aimed (default : 400)
af_allow_mouse < value > - Allow a player to move his mouse when he's frozen. 1 : allow move mouse ; 0 : not allow move mouse (default : 0)
af_only_knife < value > - Allow a player to use weapons when he's frozen. 1 : allow only knife ; 0 : allow all weapons (default : 1)
af_allow_jump < value > - Allow a player to jump when he's frozen. 1 : allow jump ; 0 : not allow jump (default : 0)
af_block_chat < value > - Block chat when a player is frozen. 0 : don't block chat ; 1 : block say ; 2 : block say_team ; 3 : block both
af_block_voice < value > - Block voices when a player is frozen. 0 : don't block voices ; 1 : block voices

Modules
- Fun
- HamSandwich
- FakeMeta
- Chatcolor (http://forums.alliedmods.net/showthread.php?p=851160)

Notes
You have to use the chatcolor plugin of ConnorMcLeod : http://forums.alliedmods.net/showthread.php?p=851160
A player who die is automaticaly unfrozen
A freezed bot can jump even if af_allow_jump is set on "0"
A freezed player is glowed in blue

Installation
DO NOT CLICK ON ' Get Plugin ' !

~> Download the zip pack
~> Put the colorchat include in your localcompiler ( /! You need to compile locally, because of the ML in color !\ )
~> Put the .sma file in the compiler and compile
~> Install the plugin like all others plugins

Enjoy

To Approvers
A lot of freeze plugins do same things.
This plugins is different, because the freeze is by aiming the player, and there is some cvars to customize.

Credits
ConnorMcLeod - Part of [Un]Freeze stock

To do list
Give me ideas ?

Changelog

Code:
v0.0.5  -  Add VoiceBlock feature
v0.0.4  -  Some optimizations
v0.0.3  -  Add ML - BlockChat feature
v0.0.2  -  Add a glow and some cvars to customize
v0.0.1  -  First release


Screenshots
http://s3.noelshack.com/uploads/imag...11_freeze1.png
http://s3.noelshack.com/uploads/imag...82_freeze2.png
http://s3.noelshack.com/uploads/imag...67_freeze3.png

MultiLangual

-> [en] - by me
-> [fr] - by me
-> [de] - by bibu
-> [tr] - by bibu
-> [ro] - by EDUTz
-> [pt] - by demon81
-> [bp] - by pacheco/demon81
-> [es] - by Korxu
-> [ru] - by Mr . Frost

http://forums.alliedmods.net/showthread.php?t=173322

Sorry for my bad english.
Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (AimFreeze.sma - 1396 views - 7.4 KB)
File Type: zip AimFreeze.zip (19.3 KB, 370 views)
File Type: txt aimfreeze.txt (1.0 KB, 427 views)

Last edited by Devil259; 02-29-2012 at 15:36. Reason: VoiceBlock feature
Devil259 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-03-2011 , 13:11   Re: Aim Freeze
Reply With Quote #2

Use for glow the fun module.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-03-2011 , 14:45   Re: Aim Freeze
Reply With Quote #3

stock fm_set_rendering isn't better ?

I used it to not include fun because I already included fakemeta

Last edited by Devil259; 12-03-2011 at 14:46.
Devil259 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-03-2011 , 15:00   Re: Aim Freeze
Reply With Quote #4

Using severals natives against one, you should well aware the fun one is faster, therefore you should use it.
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-03-2011 , 15:17   Re: Aim Freeze
Reply With Quote #5

German and Turkish:

Quote:
[de]
UNFREEZE_PLAYER = !gADMIN!t %s!n entfriert!t %s
FREEZE_PLAYER = !gADMIN!t %s!n erfriert!t %s

[tr]
UNFREEZE_PLAYER = !gADMIN!t %s!n ,!t %s!n dondurdu
FREEZE_PLAYER = !gADMIN!t %s!n , !t%s!n buzunu çözdü
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-03-2011 , 15:36   Re: Aim Freeze
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
Using severals natives against one, you should well aware the fun one is faster, therefore you should use it.
You are right. Code edited.

Quote:
Originally Posted by bibu View Post
German and Turkish:
Added, thank you. I will post in Translation Request.
Devil259 is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 12-03-2011 , 16:46   Re: Aim Freeze
Reply With Quote #7

Nice plugin! Brasilian:

Code:
[bp]
UNFREEZE_PLAYER = !gADMIN!t %s!n liberou:!t %s
FREEZE_PLAYER = !gADMIN!t %s!n congelou:!t %s
__________________




Last edited by pacheco; 12-03-2011 at 16:47.
pacheco is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-03-2011 , 16:51   Re: Aim Freeze
Reply With Quote #8

Code:
UnFreeze( id ) {     new iFlags = pev(id, pev_flags)         if( iFlags & FL_FROZEN )     {         set_pev( id , pev_flags , iFlags & ~FL_FROZEN )         set_user_rendering( id , kRenderFxNone , 0 , 0 , 0 , kRenderNormal , 0 )                 if( fwPreThink )         {             unregister_forward( FM_PlayerPreThink , fwPreThink )         }     }         bFrozen[ id ] = false }

You should unregister the forward only if NO player is frozen anymore.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-03-2011 , 17:21   Re: Aim Freeze
Reply With Quote #9

Quote:
Originally Posted by pacheco View Post
Nice plugin! Brasilian:

Code:
[bp]
UNFREEZE_PLAYER = !gADMIN!t %s!n liberou:!t %s
FREEZE_PLAYER = !gADMIN!t %s!n congelou:!t %s
Thank you

Quote:
Originally Posted by ConnorMcLeod View Post
Code:
UnFreeze( id ) {     new iFlags = pev(id, pev_flags)         if( iFlags & FL_FROZEN )     {         set_pev( id , pev_flags , iFlags & ~FL_FROZEN )         set_user_rendering( id , kRenderFxNone , 0 , 0 , 0 , kRenderNormal , 0 )                 if( fwPreThink )         {             unregister_forward( FM_PlayerPreThink , fwPreThink )         }     }         bFrozen[ id ] = false }

You should unregister the forward only if NO player is frozen anymore.
Edited.
Devil259 is offline
jackas
Senior Member
Join Date: Feb 2011
Old 12-04-2011 , 15:10   Re: Aim Freeze
Reply With Quote #10

Also add "gag" for that player from using say_team, say or voicecomm. Or he will abuse admin for freezing...
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!
jackas is offline
Reply



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 16:09.


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