Raised This Month: $51 Target: $400
 12% 

Glow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn3amtz
Senior Member
Join Date: Jan 2015
Location: France
Old 01-14-2016 , 18:43   Glow
Reply With Quote #1

Can someone tell me how to set user rendering CS TEAM render Blue and Team T Red?
Sn3amtz is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 01-16-2016 , 03:14   Re: Glow
Reply With Quote #2

Look at csdm source code, on player spawn it does exactly what you said.
Glows players for 2-3 seconds with team color.
siriusmd99 is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 01-16-2016 , 08:34   Re: Glow
Reply With Quote #3

Code:
set_user_rendering(id, kRenderFxNone, 255, 255, 255, kRenderNormal, 0)
I'm not sure !
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""player_spawn"1)
}


public 
player_spawn(id){
    
    new 
team get_user_team(id)
    
    if(
is_user_alive(id) && team == 1){
        
set_user_rendering(idkRenderFxNone00200kRenderNormal30)
    }
    if(
is_user_alive(id) && team == 2){
        
set_user_rendering(idkRenderFxNone20000kRenderNormal30)
    }

__________________

Last edited by abdobiskra; 01-16-2016 at 08:36.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
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 11:39.


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