Raised This Month: $ Target: $400
 0% 

Adminglow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-21-2006 , 11:47   Adminglow
Reply With Quote #1

Hello,
I have a Kreedz-Multiplugin and there everything works...but only the Adminglow (kz_adminglow) command doesn't do so.
The Admins should glow green, if it is enabled, but they actually do not glow in any color...
Thank you for helping me
BoOnSpoOn
Attached Files
File Type: sma Get Plugin or Get Source (ProKreedz.sma - 630 views - 38.5 KB)
BoOnSpoOn is offline
AlMod
Member
Join Date: Nov 2006
Old 12-21-2006 , 13:47   Re: Adminglow
Reply With Quote #2

I think that not works with the 'KZ_LEVEL' constant. It seem's user haven't such flag - and so it's doesn't work. or
in that place:
PHP Code:
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 = {0,255,0}
else
colors = {0,0,0}
 
set_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)

don't use else configuration if the first condition is TRUE the other is not checking
AlMod is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-21-2006 , 18:45   Re: Adminglow
Reply With Quote #3

Quote:
Originally Posted by AlMod View Post
I think that not works with the 'KZ_LEVEL' constant. It seem's user haven't such flag - and so it's doesn't work. or
in that place:
PHP Code:
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 = {0,255,0}
else
colors = {0,0,0}
 
set_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)

don't use else configuration if the first condition is TRUE the other is not checking
#define KZ_LEVEL ADMIN_KICK
[ --<-@ ] Black Rose is offline
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-21-2006 , 13:51   Re: Adminglow
Reply With Quote #4

So can you tell me what to write else? I am no Scripter
BoOnSpoOn is offline
BoOnSpoOn
Junior Member
Join Date: Jul 2006
Old 12-21-2006 , 18:49   Re: Adminglow
Reply With Quote #5

Quote:
#define KZ_LEVEL ADMIN_KICK
Already stands there ^^
BoOnSpoOn is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-21-2006 , 18:54   Re: Adminglow
Reply With Quote #6

Yes I know, he said it wouldn't work.
[ --<-@ ] 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 22:29.


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