Raised This Month: $ Target: $400
 0% 

Player Aura help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-28-2013 , 14:18   Re: Player Aura help
Reply With Quote #1

Quote:
Originally Posted by Kard1nal View Post
Use
set_user_rendering(id, kRenderFxGlowShell, red, green, blue, kRenderNormal, 40)

Where red, green, blue - color in RGB system.
this is for a glow, not for an aura...

here you have, from zp:
PHP Code:
// Nemesis/madness aura task
public zombie_aura(taskid)
{
    
// Get player's origin
    
static origin[3]
    
get_user_origin(ID_AURAorigin)
    
    
// Colored Aura
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
    
write_byte(TE_DLIGHT// TE id
    
write_coord(origin[0]) // x
    
write_coord(origin[1]) // y
    
write_coord(origin[2]) // z
    
write_byte(15// radius
    
write_byte(get_pcvar_num(cvar_nem_aura_colors[0])) // red, CHANGE THE COLOR!
    
write_byte(get_pcvar_num(cvar_nem_aura_colors[1])) // green, CHANGE THE COLOR!
    
write_byte(get_pcvar_num(cvar_nem_aura_colors[2])) // blue, CHANGE THE COLOR!
    
write_byte(2// life
    
write_byte(0// decay rate
    
message_end()

make a task for give to a player, and when player dead or left remove the task

Last edited by baneado; 04-28-2013 at 14:19.
baneado 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 10:46.


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