Raised This Month: $ Target: $400
 0% 

Adminglow doesn't work :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-14-2006 , 12:02   Adminglow doesn't work :(
Reply With Quote #1

Hi I have ProKreedz (from www.Xtreme-Jumps.eu) and I want to use Adminglow, that Admins glow in a specific color (I 'ld like if thy glowed in pink but if anyone can make them glowing in ANY Color it is OK ^^)
Then there is also a function that if you write /help a red message appears on the right, but if i write /help the message isn't red it is in my config color
But it doesn't work in this form (both ones):

public glow(id) {
new colors[3]
if(needhelp[id-1] && get_pcvar_num(kz_help) == 1)
colors = {255,0,0}
else if(access(id,KZ_LEVEL) && get_pcvar_num(kz_adminglow) == 1)
colors = {255,0,100}
else
colors = {0,0,0}

set_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)

Who can help me?
BoOnSpoOn is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 12-14-2006 , 17:24   Re: Adminglow doesn't work :(
Reply With Quote #2

Quote:
Originally Posted by BoOnSpoOn View Post
Hi I have ProKreedz (from www.Xtreme-Jumps.eu) and I want to use Adminglow, that Admins glow in a specific color (I 'ld like if thy glowed in pink but if anyone can make them glowing in ANY Color it is OK ^^)
Then there is also a function that if you write /help a red message appears on the right, but if i write /help the message isn't red it is in my config color
But it doesn't work in this form (both ones):

public glow(id) {
new colors[3]
if(needhelp[id-1] && get_pcvar_num(kz_help) == 1)
colors = {255,0,0}
else if(access(id,KZ_LEVEL) && get_pcvar_num(kz_adminglow) == 1)
colors = {255,0,100}
else
colors = {0,0,0}

set_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)

Who can help me?

I think you are looking for replacing
Code:
set_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)

to

Code:
set_user_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)

because set_rendering does not affect players, rather entities. Set_user_rendering is a function of the "fun" include so you must
Code:
 #include <fun>

Cheers!
Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-15-2006 , 05:34   Re: Adminglow doesn't work :(
Reply With Quote #3

Doesn't work, only if i change the down line on the bottom then it works, but then i glow even if i put it ON or OFF ^^
Well maybe there's a problem because of
colors[0],colors[1],colors[2] I mean because there are just 2 colors, 0 0 0 for not glowing and 0 255 0 for green gowing oO
BoOnSpoOn is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-15-2006 , 05:47   Re: Adminglow doesn't work :(
Reply With Quote #4

What claren said, try this:

Code:
#include <fun> new needhelp[33] public HelpCommand(id){ needhelp[id] = 1 console_print(id,"You requested help and you should be glowing") glow(id) } public glow(id) { if(needhelp[id] && get_pcvar_num(kz_help) == 1){  set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25) }else if(access(id,KZ_LEVEL) && get_pcvar_num(kz_adminglow) == 1){  set_user_rendering(id,kRenderFxGlowShell,255,0,100,kRenderNormal,25) } }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-16-2006 , 05:22   Re: Adminglow doesn't work :(
Reply With Quote #5

If i replace the old code with your ones there is the following problem :
/home/groups/amxmodx/tmp3/phpV8OWEv.sma(200) : error 021: symbol already defined: "needhelp"
/home/groups/amxmodx/tmp3/phpV8OWEv.sma(202 -- 203) : warning 213: tag mismatch
compiling failed...
BoOnSpoOn is offline
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-16-2006 , 05:39   Re: Adminglow doesn't work :(
Reply With Quote #6

I give you a link from the .sma so you are able to see the whole thing ^^

Last edited by BoOnSpoOn; 12-16-2006 at 06:48.
BoOnSpoOn is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-16-2006 , 05:59   Re: Adminglow doesn't work :(
Reply With Quote #7

Broken, just post it here.
[ --<-@ ] Black Rose is offline
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-16-2006 , 06:45   Re: Adminglow doesn't work :(
Reply With Quote #8

Sorry^^ Now it works...Here's the link to download directly :
http://mouzbotz.mo.ohost.de/ProKreedz.sma
When You Downloaded It You'll See Why I Didn't Post It

Last edited by BoOnSpoOn; 12-16-2006 at 06:47. Reason: Forgotten URL
BoOnSpoOn is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-16-2006 , 14:05   Re: Adminglow doesn't work :(
Reply With Quote #9

Quote:
Originally Posted by BoOnSpoOn View Post
If i replace the old code with your ones there is the following problem :
/home/groups/amxmodx/tmp3/phpV8OWEv.sma(200) : error 021: symbol already defined: "needhelp"
/home/groups/amxmodx/tmp3/phpV8OWEv.sma(202 -- 203) : warning 213: tag mismatch
compiling failed...
Do not include 'new needhelp[33]' in your code, because it is already defined...
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-17-2006 , 06:54   Re: Adminglow doesn't work :(
Reply With Quote #10

He has allready fixed that, and it compiles fine.
"255, 0, 255" is pink.
[ --<-@ ] Black Rose 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 06:58.


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