AlliedModders

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

Sn3amtz 01-14-2016 18:43

Glow
 
Can someone tell me how to set user rendering CS TEAM render Blue and Team T Red?

siriusmd99 01-16-2016 03:14

Re: Glow
 
Look at csdm source code, on player spawn it does exactly what you said.
Glows players for 2-3 seconds with team color.

abdobiskra 01-16-2016 08:34

Re: Glow
 
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)
    }




All times are GMT -4. The time now is 09:33.

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