AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Freez time (https://forums.alliedmods.net/showthread.php?t=88086)

One 03-20-2009 10:29

Freez time
 
How can i add Freeztime so that players can just move+use the Use key+can jump & nothing else?

LaineN 03-20-2009 10:36

Re: Freez time
 
mp_freezetime <time> ?

Dores 03-20-2009 10:58

Re: Freez time
 
You just block attacks. :shock:

Bugsy 03-20-2009 10:58

Re: Freez time
 
Realistically you just want to block a player from attacking then, correct?

http://forums.alliedmods.net/showthr...t=block+attack

One 03-20-2009 11:19

Re: Freez time
 
Nop. not just attack, i want to free the time on hud too.u know normal when u have freeztime, u see the time in hud, goes like a countdown. 6...5...4...3...2...1...0...then <roundtime>!

i want that this countdown is there, but player can move. how can i give players move. ( block attack is no problem. i can do it )

TheRadiance 03-20-2009 11:25

Re: Freez time
 
This will allow you to move while freeze time:
PHP Code:

#include < amxmodx >
#include < fakemeta >

#define VERSION "1.0"

new g_iStatus

public plugin_init( )
{
    
register_plugin"SpawnRun"VERSION"Radiance" )
    
register_event"HLTV""EventNewRound""a""1=0""2=0" )
    
register_logevent"LogeventNewRound"2"1=Round_Start" )
    
register_forwardFM_PlayerPreThink"ForwardHookPlayerPreThinkPre")
}

public 
LogeventNewRound( )
    
g_iStatus 0

public EventNewRound( )
    
g_iStatus 1

public ForwardHookPlayerPreThinkPreid )
    if (
g_iStatus && is_user_aliveid ) )
    {
        new 
Float:fSpeed
        pev
idpev_maxspeedfSpeed )

        if ( 
fSpeed != 250.0 )
            
set_pevidpev_maxspeed250.0 )
    } 


One 03-20-2009 12:02

Re: Freez time
 
Ty. Ill check it.

hleV 03-20-2009 13:34

Re: Freez time
 
Code:
#include <amxmodx> #include <fakemeta>   new bool:g_FreezeTime;   public plugin_init() {         register_plugin("Allow Movement During Freezetime", "1.0", "hleV");           register_event("CurWeapon", "WeaponChange", "be", "1=1");         register_event("HLTV", "NewRound", "a", "1=0", "2=0");           register_logevent("RoundStart", 2, "1=Round_Start"); }   public WeaponChange(ClientID)         if (!g_FreezeTime || !is_user_alive(ClientID))                 return;         // Would be better to check the weapon and set specific speed         // But I guess you got the idea         set_pev(ClientID, pev_maxspeed, 250.0); }   public NewRound()         g_FreezeTime = true;   public RoundStart()         g_FreezeTime = false;

Exolent[jNr] 03-20-2009 16:30

Re: Freez time
 
Code:
#include <amxmodx> #include <fakemeta>   new bool:g_FreezeTime;   public plugin_init() {         register_plugin("Allow Movement During Freezetime", "1.0", "hleV");           register_event("CurWeapon", "WeaponChange", "be", "1=1");         register_event("HLTV", "NewRound", "a", "1=0", "2=0");           register_logevent("RoundStart", 2, "1=Round_Start"); }   public WeaponChange(ClientID)         if (!g_FreezeTime || !is_user_alive(ClientID))                 return;         // Would be better to check the weapon and set specific speed         // But I guess you got the idea         cs_reset_user_maxspeed(ClientID); }   public NewRound()         g_FreezeTime = true;   public RoundStart()         g_FreezeTime = false; cs_reset_user_maxspeed(plr) {     static Float:fMaxSpeed;         static clip, ammo;     switch( get_user_weapon(plr, clip, ammo) )     {         case CSW_SG550, CSW_AWP, CSW_G3SG1:         {             fMaxSpeed = 210.0;         }         case CSW_M249:         {             fMaxSpeed = 220.0;         }         case CSW_AK47:         {             fMaxSpeed = 221.0;         }         case CSW_M3, CSW_M4A1:         {             fMaxSpeed = 230.0;         }         case CSW_SG552:         {             fMaxSpeed = 235.0;         }         case CSW_XM1014, CSW_AUG, CSW_GALIL, CSW_FAMAS:         {             fMaxSpeed = 240.0;         }         case CSW_P90:         {             fMaxSpeed = 245.0;         }         case CSW_SCOUT:         {             fMaxSpeed = 260.0;         }         default:         {             fMaxSpeed = 250.0;         }     }         engfunc(EngFunc_SetClientMaxspeed, plr, fMaxSpeed);     set_pev(plr, pev_maxspeed, fMaxSpeed); }

One 03-20-2009 16:37

Re: Freez time
 
Ty @ ALL. i dont need to hook anyweapons. players will be stripted on spawn. But TY. ill give +k tommorow. i have to wait :-D


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

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