AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] mp_freezetime stop working when this plugin is on (https://forums.alliedmods.net/showthread.php?t=171817)

MC.TSHIRT 11-11-2011 06:26

[HELP] mp_freezetime stop working when this plugin is on
 
1 Attachment(s)
Hi

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

anyone know the problem ? or fix?

pls help me

Nyuszy 11-12-2011 07:36

Re: [HELP] mp_freezetime stop working when this plugin is on
 
i think it is happening because you use set_user_maxspeed before round start

ConnorMcLeod 11-12-2011 07:38

Re: [HELP] mp_freezetime stop working when this plugin is on
 
Before set_user_maxspeed, add this check :

if( get_user_maxspeed(id) != 1.0 )

MC.TSHIRT 11-12-2011 13:16

Re: [HELP] mp_freezetime stop working when this plugin is on
 
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?

ConnorMcLeod 11-12-2011 13:17

Re: [HELP] mp_freezetime stop working when this plugin is on
 
if( iOwner != id )
if( get_user_maxspeed(id) != 1.0 )

->

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

MC.TSHIRT 11-12-2011 13:26

Re: [HELP] mp_freezetime stop working when this plugin is on
 
oh my god thank u, u are the best

awesome helps from Connor <3


All times are GMT -4. The time now is 14:18.

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