Raised This Month: $ Target: $400
 0% 

Freez time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-20-2009 , 10:29   Freez time
Reply With Quote #1

How can i add Freeztime so that players can just move+use the Use key+can jump & nothing else?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 03-20-2009 , 10:36   Re: Freez time
Reply With Quote #2

mp_freezetime <time> ?
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-20-2009 , 10:58   Re: Freez time
Reply With Quote #3

You just block attacks.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-20-2009 , 10:58   Re: Freez time
Reply With Quote #4

Realistically you just want to block a player from attacking then, correct?

http://forums.alliedmods.net/showthr...t=block+attack
__________________
Bugsy is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-20-2009 , 11:19   Re: Freez time
Reply With Quote #5

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 )
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-20-2009 , 11:25   Re: Freez time
Reply With Quote #6

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 )
    } 

Last edited by TheRadiance; 03-20-2009 at 11:28.
TheRadiance is offline
Send a message via ICQ to TheRadiance
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-20-2009 , 12:02   Re: Freez time
Reply With Quote #7

Ty. Ill check it.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-20-2009 , 13:34   Re: Freez time
Reply With Quote #8

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;
__________________
hleV is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-20-2009 , 16:30   Re: Freez time
Reply With Quote #9

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); }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-20-2009 , 16:37   Re: Freez time
Reply With Quote #10

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
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 08:50.


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