AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set_User_Rendering Issue (https://forums.alliedmods.net/showthread.php?t=128912)

GXLZPGX 06-06-2010 18:38

Set_User_Rendering Issue
 
Alright so here we go (If you know what your doing this should make sense)

PHP Code:

RegisterHamHam_Spawn"player""player_spawned"

PHP Code:

public player_spawnediPlayer )
{
    if( 
is_user_aliveiPlayer ) && cs_get_user_teamiPlayer ) == CS_TEAM_T )
    {
        new 
cid 2
        
new color 2
        print_color
iPlayercidcolor"^x04[NightCrawlers] ^x01You are a ^x04NightCrawler!" )
        
print_coloriPlayercidcolor"^x04[NightCrawlers] ^x01If you are killed, you will be switched to a ^x04human!" )
        
set_user_footstepsiPlayer)
        
set_user_renderingiPlayerkRenderFxNone255255255kRenderTransAlpha)
        
set_user_armoriPlayerget_pcvar_numncarmor ) )
        
set_user_healthiPlayerget_pcvar_numnchealth ) )
        
set_user_gravityiPlayer0.6 )
        
strip_user_weaponsiPlayer )
        
give_itemiPlayer"weapon_knife" )
    }
    if( 
is_user_aliveiPlayer ) && cs_get_user_teamiPlayer ) == CS_TEAM_CT)
    {
        
set_user_footstepsiPlayer);
        new 
cid 2
        
new color 2
        print_color
iPlayercidcolor"^x04[NightCrawlers] ^x01You are a ^x04Human!" )
        
print_coloriPlayercidcolor"^x04[NightCrawlers] ^x01Kill a ^x04NightCrawler ^x01to switch places with them!" )
        
set_user_armoriPlayerget_pcvar_numhumanarmor ) )
    }


Only part that isn't working:

PHP Code:

set_user_renderingiPlayerkRenderFxNone255255255kRenderTransAlpha


drekes 06-06-2010 18:44

Re: Set_User_Rendering Issue
 
i'm not sure, but i think it is kRenderFxNone as seconds parameter.
Try with kRenderFxGlowShell or something

GXLZPGX 06-06-2010 19:00

Re: Set_User_Rendering Issue
 
Quote:

Originally Posted by drekes (Post 1201796)
i'm not sure, but i think it is kRenderFxNone as seconds parameter.
Try with kRenderFxGlowShell or something

It was working fine before. I don't know what could have corrupted it.

HLM 06-06-2010 19:06

Re: Set_User_Rendering Issue
 
set it to some random rendering mode, renderfxnone = do nothing IIRC, so just make him glow with RGB of 0, 0, 0 so its unnoticed.. that should work.

Kreation 06-06-2010 19:09

Re: Set_User_Rendering Issue
 
I suggest if what HLM doesn't work then try using what drekes said.


All times are GMT -4. The time now is 05:17.

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