Raised This Month: $32 Target: $400
 8% 

Nemesis colored


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 09-03-2014 , 04:18   Nemesis colored
Reply With Quote #1

Sorry fo my broken english...

How do nemesis on my server to blink in different colors
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-03-2014 , 06:07   Re: Nemesis colored
Reply With Quote #2

LOL, blinking Nemesis. I love the idea. I also keen to know how to do this. ;)
zmd94 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 09-03-2014 , 07:01   Re: Nemesis colored
Reply With Quote #3

Maybe setting a task in plugin_init(), loop trough all nemesises and setting them random rendering each second?
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Old 09-03-2014, 08:14
Pinnker123
This message has been deleted by YamiKaitou. Reason: English Only
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-03-2014 , 13:47   Re: Nemesis colored
Reply With Quote #4

Well, i can access to glow without editing main plugin yet i can't change te_dlight message color, sadly.
So then only way to do it is to edit main plugin.

Here's a code example thing...
PHP Code:
/* Global variables */
new const nem_colors[][3] = { { 2550}, { 0255}, { 00255 }, { 25553124 } } // red, green, blue and pink ( because i want to have pink costom title! ;) )
new nem_glow_color[32], any:nem_glow_var[32][2]


public 
aura_think_what_ever_that_function_name_is(id)
{
    
// id is nemesis, or must be in order to make this what you guys want
    
static Float:gtidminus
    idminus 
id 1
    gt 
get_gametime()
    if( 
nem_glow_timer[idminus][0] < gt )
    {
        
nem_glow_var[idminus][1]++
        if( 
nem_glow_var[idminus][1] == sizeof(nem_colors)) nem_glow_var[idminus][1] = 0
        nem_glow_color
{idminus 4} = nem_colors[nem_glow_var[idminus][1]][0]
        
nem_glow_color{(idminus 4) + 1} = nem_colors[nem_glow_var[idminus][1]][1]
        
nem_glow_color{(idminus 4) + 2} = nem_colors[nem_glow_var[idminus][1]][2]
        
set_rendering(idkRenderFxGlowShellnem_colors[nem_glow_var[idminus][1]][0], nem_colors[nem_glow_var[idminus][1]][1], nem_colors[nem_glow_var[idminus][1]][2], kRenderNormal20)
        
nem_glow_timer[idminus][0] = gt 1.0 // 1.0 is time in seconds that how fast it 'nemesis' is changing colors
    
}
    
    
message_begin // that te_dlight message
    /* color place... */
    
write_bytenem_glow_color{idminus 4} ) // color red
    
write_bytenem_glow_color{(idminus 4) + 1} ) // color green
    
write_bytenem_glow_color{(idminus 4) + 2} ) // color blue
    /***/
    
message_end

Just find a place where your zp plugin is sending aura light and copy and paste things...
Make sure that its nemesis aura.

Last edited by .Dare Devil.; 09-04-2014 at 07:25.
.Dare Devil. is offline
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 09-05-2014 , 00:40   Re: Nemesis colored
Reply With Quote #5

Where to put the code give more info
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Unkolix
Veteran Member
Join Date: Sep 2012
Old 09-05-2014 , 09:08   Re: Nemesis colored
Reply With Quote #6

Quote:
Originally Posted by Pinnker123 View Post
Where to put the code give more info
Again, post it in Request section if you have no experience in scripting... And we must know and have the plugin you are using...
Unkolix 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 12:06.


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