Raised This Month: $ Target: $400
 0% 

[HELP] mp_freezetime stop working when this plugin is on


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MC.TSHIRT
Senior Member
Join Date: Dec 2010
Old 11-11-2011 , 06:26   [HELP] mp_freezetime stop working when this plugin is on
Reply With Quote #1

Hi

my mp_freezetime stop working when This plugin is on.......

anyone know the problem ? or fix?

pls help me
Attached Files
File Type: sma Get Plugin or Get Source (fixedsoccerjamball.sma - 916 views - 15.7 KB)
__________________
MC.TSHIRT is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 11-12-2011 , 07:36   Re: [HELP] mp_freezetime stop working when this plugin is on
Reply With Quote #2

i think it is happening because you use set_user_maxspeed before round start
Nyuszy is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-12-2011 , 07:38   Re: [HELP] mp_freezetime stop working when this plugin is on
Reply With Quote #3

Before set_user_maxspeed, add this check :

if( get_user_maxspeed(id) != 1.0 )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MC.TSHIRT
Senior Member
Join Date: Dec 2010
Old 11-12-2011 , 13:16   Re: [HELP] mp_freezetime stop working when this plugin is on
Reply With Quote #4

PHP Code:
public PlayerPreThink(id) {
    if(!
is_user_alive(id))
        return 
PLUGIN_CONTINUE;
        
    if( 
is_valid_entg_iBall  ) ) {
        static 
iOwneriOwner pevg_iBall pev_iuser1 );
        if( 
iOwner != id )
        if( 
get_user_maxspeed(id) != 1.0 
            
set_user_maxspeed(id230.0)
    }
    return 
PLUGIN_HANDLED;

PHP Code:
public CurWeapon(id) {
    if(!
is_user_alive(id))
        return 
PLUGIN_CONTINUE;
    if( 
is_valid_ent(g_iBall ) ) {
        static 
iOwneriOwner pevg_iBall pev_iuser1 );
        if( 
get_user_maxspeed(id) != 1.0 
        if( 
iOwner == id )
            
set_user_maxspeed(id200)
    }    
    return 
PLUGIN_HANDLED;

PHP Code:
KickBallid ) {
    
    if( 
get_user_maxspeed(id) != 1.0 
    
set_user_maxspeed(id230.0)
    static 
Float:vOrigin];
    
entity_get_vectorg_iBall EV_VEC_originvOrigin );
    
    
vOrigin[2] += 35
PHP Code:
public FwdTouchPlayerBallid ) {
    if( 
is_user_botid ) )
        return 
PLUGIN_CONTINUE;
    
    static 
iOwneriOwner pevBallpev_iuser1 );
    
    if( 
iOwner == ) {
        
entity_set_intBallEV_INT_iuser1id );
        
beam(10)
    
emit_soundBallCHAN_ITEMgotball1.0ATTN_NORM0PITCH_NORM);
    
set_hudmessage(2552020, -1.00.411.01.50.10.12)
    
show_hudmessage(id,"YOU HAVE THE BALL")
    if( 
get_user_maxspeed(id) != 1.0 
        
set_user_maxspeed(id200.0)
    }
    return 
PLUGIN_CONTINUE;

Right? or bad I need to add this all

or can u do that for me connor?
__________________

Last edited by MC.TSHIRT; 11-12-2011 at 13:20.
MC.TSHIRT is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-12-2011 , 13:17   Re: [HELP] mp_freezetime stop working when this plugin is on
Reply With Quote #5

if( iOwner != id )
if( get_user_maxspeed(id) != 1.0 )

->

if( iOwner != id && get_user_maxspeed(id) != 1.0 )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MC.TSHIRT
Senior Member
Join Date: Dec 2010
Old 11-12-2011 , 13:26   Re: [HELP] mp_freezetime stop working when this plugin is on
Reply With Quote #6

oh my god thank u, u are the best

awesome helps from Connor <3
__________________
MC.TSHIRT 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 14:18.


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