Raised This Month: $ Target: $400
 0% 

Player Aura help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 04-27-2013 , 16:27   Player Aura help
Reply With Quote #1

Hello guys as the title says i just wanted to add aura on vip players but i will be able to change its color...
It was better to give/create me a stock... it will help a lot. If not just help me...
I'm not so good with "write_byte" and "engfunc" so maybe you can help to understand them....
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 04-28-2013 , 12:46   Re: Player Aura help
Reply With Quote #2

Use
set_user_rendering(id, kRenderFxGlowShell, red, green, blue, kRenderNormal, 40)

Where red, green, blue - color in RGB system.
__________________
Sorry for my English, I'm Russian.

Last edited by Kard1nal; 04-28-2013 at 12:46.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-28-2013 , 14:18   Re: Player Aura help
Reply With Quote #3

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


Thread Tools
Display Modes

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