İsteği söyleyeyim, amx_freeze @T 123 yapinca 123 saniye 9999999999999 yapinca yazdığım rakama göre freeze yapıcak.
amx_freeze pit10 5 mesela... bu şekildede olsun
amx_unfreeze @T yaptığımda direk eski hallerine geri dönücekler
bide ufak mavi bi glow verilirse (y)
Freeze atınca nolucak

@T yada nick yazınca komutun uygulandığı kişi gömülmeyecek sabitlenicek yani hareket edemeyecek atıyorum sağa sola koşamayacak, ama bi cvar komutuyla faresini hareket ettir,ettirme, attack yapsın, yapmasın, cvarı eklenebilir


Bu alliedmoddersda bulduğum plugin;
PHP- Kodu:
/* Aim Freeze v0.0.3 by Devil 

* 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 )
 
* Cvars :         af_distance    < value >    -   Distance max between aimer and aimed (default : 400)
                  af_allow_mouse < value >    -   1 : allow move mouse ; 0 : not allow move mouse
                  af_only_knife  < value >    -   1 : allow only knife ; 0 : allow all weapons
                  af_allow_jump  < value >    -   1 : allow jump ; 0 : not allow jump
                  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
           
* Notes :         You have to use the chatcolor plugin of ConnorMcLeod : https://forums.alliedmods.net/showthread.php?p=851160
                  A player who die is automaticaly unfreezed
                  A freezed bot can jump even if af_allow_jump is set on "0"
                  A freezed player is glowed in blue
           
* Commands :      bind < key > "freeze"   -> Require admin flag (default : ADMIN_KICK) definable on line X (#define ADMIN_ALLOWED)
                                          -> Freeze/Unfreeze a player
                                      
* 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 config to your tastes

* Credits :       ConnorMcLeod - Part of [Un]Freeze stock

* To do :         Give me ideas ? :3

* Changelog :     v0.0.3 (3 dec 2011) -  Add ML
                  v0.0.2  -  Add a glow and some cvars to config to your tastes
                  v0.0.1  -  First release
*/

#include < amxmodx >
#include < engine >
#include < fun >
#include < hamsandwich >
#include < fakemeta >
#include < chatcolor >

#define IsPlayer(%1) (1 <= %1 <= g_iMaxPlayers) 
#define is_user_frozen(%1)   bFrozen[%1]
#define ADMIN_ALLOWED   ADMIN_KICK

/* const */
const iVictim 2;

const 
XO_WEAPONS 4;
const 
m_pPlayer 41;
const 
m_iId 43;
/*       */

new g_iMaxPlayers;
new 
fwPreThink;

/* bool */
new bool:bFrozen33 ];
/*      */

/* pcvars */
new pCvarDistance;
new 
pCvarAllowMouse;
new 
pCvarOnlyKnife;
new 
pCvarAllowJump;
new 
pCvarBlockChat;
new 
pCvarBlockVoice;
/*        */

/* floats */
new FloatiAngles33 ][ ];
/*        */

public plugin_init( )
{
    
register_plugin"Aim Freeze" "0.0.4" "Devil" );
    
    
register_dictionary_colored"aimfreeze.txt" );
    
    
register_clcmd"freeze" "cmdFreezePlayer" );
    
register_clcmd"say" "cmdHookSay" );
    
register_clcmd"say_team" "cmdHookSay_Team" );
    
    
register_event"CurWeapon" "eventCurWeapon" "be" "1=1" "2!29" ); // https://wiki.amxmodx.org/CS_Weapons_Information
    
register_event"DeathMsg" "eventDeathMsg" "a" );
    
    
register_logevent"eventRoundEnd" "1=Round_End" );
    
    
pCvarDistance register_cvar"af_distance" "400" ); // distance max between aimer and aimed
    
pCvarAllowMouse register_cvar"af_allow_mouse" "0" ); // 1 : allow move mouse ; 0 : not allow move mouse
    
pCvarOnlyKnife register_cvar"af_only_knife" "1" ); // 1 : only allow knife ; 0 : allow all weapons
    
pCvarAllowJump register_cvar"af_allow_jump" "0" ); // 1 : allow jump ; 0 : not allow jump
    
pCvarBlockChat register_cvar"af_block_chat" "3" ); // 0 : no blocking ; 1 : block say ; 2 : block say_team ; 3 : block both
    
pCvarBlockVoice register_cvar"af_block_voice" "1" ); // 0 : no blocking ; 1 : block voice
    
    
RegisterHamHam_Spawn "player" "Player_Spawn" true );
    
RegisterHamHam_Player_Jump "player" "Player_Jump" false );
    
    
g_iMaxPlayers get_maxplayers( );
}

public 
cmdFreezePlayerid )
{
    if( !( 
get_user_flagsid ) & ADMIN_ALLOWED ) )
        return 
PLUGIN_HANDLED;
    
    if( !
is_user_aliveid ) )
        return 
PLUGIN_HANDLED;
    
    new 
tempid body;
    new 
Float:flDistance get_user_aimingid tempid body );
    
    if( 
IsPlayertempid ) &&
        
is_user_alivetempid ) &&
        
flDistance <= get_pcvar_floatpCvarDistance ) )
    {
        new 
szNameID32 ] , szNameTempID32 ];
        
        
get_user_nameid szNameID charsmaxszNameID ) );
        
get_user_nametempid szNameTempID charsmaxszNameTempID ) );
        
        if( 
is_user_frozentempid ) )
        {
            
UnFreezetempid );
                
            
client_print_colorDontChange "%L" "UNFREEZE_PLAYER" szNameID szNameTempID );
        }
            
        else
        {
            
Freezetempid );
                
            
client_print_colorDontChange "%L" "FREEZE_PLAYER" szNameID szNameTempID );
        }
    }
    
    return 
PLUGIN_HANDLED;
}

public 
cmdHookSayid )
{
    if( 
is_user_frozenid ) )
    {    
        new 
iBlockChat get_pcvar_numpCvarBlockChat );
    
        if( 
iBlockChat == || iBlockChat == )
        {
            return 
PLUGIN_HANDLED;
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
cmdHookSay_Teamid )
{
    if( 
is_user_frozenid ) )
    {
        new 
iBlockChat get_pcvar_numpCvarBlockChat );
    
        if( 
iBlockChat == || iBlockChat == )
        {
            return 
PLUGIN_HANDLED;
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
Player_Jumpid )
{
    if( 
is_user_frozenid ) && !get_pcvar_numpCvarAllowJump ) )
    {
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;
}

public 
Player_Spawnid )
{
    if( 
is_user_aliveid ) )
    {
        if( 
is_user_frozenid ) )
        {
            
UnFreezeid );
        }
    }
}

public 
fwPlayerPreThinkid )
{
    if( 
is_user_frozenid ) && !get_pcvar_numpCvarAllowMouse ) )
    {
        if( 
is_user_aliveid ) )
        {
            
set_pevid pev_v_angle iAnglesid ] );
            
set_pevid pev_fixangle );
        }
    }
}

public 
eventCurWeaponid )
{
    if( 
is_user_aliveid ) )
    {
        if( 
is_user_frozenid ) && get_pcvar_numpCvarOnlyKnife ) )
        {
            
engclient_cmdid "weapon_knife" );
        }
    }
}

public 
eventDeathMsg( )
{    
    
UnFreezeread_dataiVictim ) );
}

public 
eventRoundEnd( )
{
    new 
iPlayers32 ] , iNum id;
    
get_playersiPlayers iNum "a" );
    
    for( 
0iNumi++ )
    {
        
id iPlayers];
        
        if( 
is_user_frozenid ) )
        {
            
UnFreezeid );
        }
    }
}

Freezeid )

    new 
iFlags pevid pev_flags );
    
    if( ~
iFlags FL_FROZEN 
    { 
        
set_pevid pev_flags iFlags FL_FROZEN );
        
pevid pev_v_angle iAnglesid ] );
        
        
set_user_renderingid kRenderFxGlowShell 100 200 kRenderNormal 16 );
        
        if( 
get_pcvar_numpCvarBlockVoice ) )
            
set_speakid SPEAK_MUTED );
        
        if( !
fwPreThink && !get_pcvar_numpCvarAllowMouse ) )
            
fwPreThink register_forwardFM_PlayerPreThink "fwPlayerPreThink" );
    } 
    
    
bFrozenid ] = true;


UnFreezeid )

    new 
frozenCount 0;
    
    
bFrozenid ] = false;
    
    new 
iFlags pevid pev_flags ) ;
    
    if( 
iFlags FL_FROZEN 
    { 
        
set_pevid pev_flags iFlags & ~FL_FROZEN ) ;
        
set_user_renderingid kRenderFxNone kRenderNormal );
        
        new 
iPlayers32 ] , iNum tid;
        
get_playersiPlayers iNum "a" );
        
        for( 
0iNumi++ )
        {
            
tid iPlayers];
            
            if( 
is_user_frozentid ) )
            {
                
frozenCount++;
            }
        }
        
        if( 
get_speakid ) == SPEAK_MUTED )
            
set_speakid SPEAK_NORMAL );
        
        if( !
frozenCount && fwPreThink )
            
unregister_forwardFM_PlayerPreThink fwPreThink );
    }