Raised This Month: $ Target: $400
 0% 

MOVETYPE_NOCLIP with gravity and physics?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GasmoN
Member
Join Date: Jul 2014
Old 01-27-2019 , 13:20   Re: MOVETYPE_NOCLIP with gravity and physics?
Reply With Quote #1

PHP Code:
public player_spawn_post(id)
{
        if(!
is_user_alive(id))
        return;

        if(
g_IsAspec[id])
        return;

        
set_pev(idpev_solidSOLID_SLIDEBOX)

PHP Code:
public cmd_aspec(id)
{
    if(!
access(idADMIN_RCON))
    return 
PLUGIN_HANDLED;
    
    if(!
g_IsAspec[id])
    {
        
g_IsAspec[id] = true;
        
        if(
cs_get_user_team(id) != CS_TEAM_CT)
        {
            
cs_set_user_team(idCS_TEAM_CT)
            
ExecuteHamB(Ham_CS_RoundRespawnid)
        }
        else
        {
            
ExecuteHamB(Ham_CS_RoundRespawnid)
        }
        
        
set_user_rendering(idkRenderFxDistort000kRenderTransAdd60);
        
set_user_godmode(id1)
        
cs_set_user_team(idCS_TEAM_SPECTATOR)
                
set_pev(idpev_solidSOLID_NOT)
    }
    else
    {        
        
g_IsAspec[id] = false;
        
BackToTeam(id)
    }
    
    return 
PLUGIN_HANDLED;

GasmoN 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 20:27.


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