Raised This Month: $ Target: $400
 0% 

Remove the speed when spawn(surf)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2011 , 01:58   Re: Remove the speed when spawn(surf)
Reply With Quote #4

I thought you had some video of that bug.
May be you should reset velocity when you respawn the player, also which respawn plugin are you using ?

PHP Code:
    RegisterHam(Ham_Spawn"player""CBasePlayer_Spawn_Post"true)
}

public 
CBasePlayer_Spawn_Postid )
{
    if( 
is_user_alive(id) )
    {
        new 
iFlags pev(idpev_flags)
        if( 
iFlags FL_BASEVELOCITY )
        {
            
set_pev(idpev_flagsiFlags & ~FL_BASEVELOCITY)
        }
        
set_pev(idpev_velocity0)
        
set_pev(idpev_basevelocity0)
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-02-2011 at 02:02.
ConnorMcLeod is offline
 



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 04:18.


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