AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Player trail (https://forums.alliedmods.net/showthread.php?t=118068)

dark_style 02-07-2010 11:26

Player trail
 
Hello, I need for my server plugin... when player spawn got trail but color of trail is color of team..
CT - Blue color
T - Red color

To all who have not understend me ... I wanna this green line -> http://amxmodxbg.org/upload/images/1227288542.jpg


Sorry for my very bad english.. :)

Toastt 02-07-2010 11:29

Re: Player trail
 
isnt there already a plugin like this?

dark_style 02-07-2010 11:32

Re: Player trail
 
Quote:

Originally Posted by Toastt (Post 1081712)
isnt there already a plugin like this?

Hmm...I search but don't see this plugin.

Xalus 02-07-2010 11:54

Re: Player trail
 
Try this:

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

#define PLUGIN "Jailbreak | Glow Players"
#define VERSION "1.0"
#define AUTHOR "Xalus"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHamHam_Spawn"player""FwdHamPlayerSpawn");
    
register_logevent("logevent_round_end"2"1=Round_End")  
}

public 
FwdHamPlayerSpawn(id) {     

    if(
cs_get_user_team(id) == CS_TEAM_T) {
        
set_user_rendering(idkRenderFxGlowShell25000kRenderNormal20)    
    }
    else if(
cs_get_user_team(id) == CS_TEAM_CT) {    
        
set_user_rendering(idkRenderFxGlowShell00250kRenderNormal20)    
    }
}

public 
logevent_round_end(id)
{
    
set_user_rendering(idkRenderFxGlowShell000kRenderNormal20)    



dark_style 02-07-2010 12:13

Re: Player trail
 
Quote:

Originally Posted by Xalus (Post 1081750)
Try this:

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

#define PLUGIN "Jailbreak | Glow Players"
#define VERSION "1.0"
#define AUTHOR "Xalus"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHamHam_Spawn"player""FwdHamPlayerSpawn");
    
register_logevent("logevent_round_end"2"1=Round_End")  
}

public 
FwdHamPlayerSpawn(id) {     

    if(
cs_get_user_team(id) == CS_TEAM_T) {
        
set_user_rendering(idkRenderFxGlowShell25000kRenderNormal20)    
    }
    else if(
cs_get_user_team(id) == CS_TEAM_CT) {    
        
set_user_rendering(idkRenderFxGlowShell00250kRenderNormal20)    
    }
}

public 
logevent_round_end(id)
{
    
set_user_rendering(idkRenderFxGlowShell000kRenderNormal20)    



I don't wanna glow. I wanna trail -> http://amxmodxbg.org/upload/images/1227288542.jpg
(this green line)...

Xalus 02-07-2010 13:17

Re: Player trail
 
Then I can't help u sorry.

Exolent[jNr] 02-07-2010 13:34

Re: Player trail
 
If you search, you will find it.

http://www.amxmodx.org/compiler.php
http://forums.alliedmods.net/search.php


All times are GMT -4. The time now is 10:13.

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