AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adminglow (https://forums.alliedmods.net/showthread.php?t=48836)

BoOnSpoOn 12-21-2006 11:47

Adminglow
 
1 Attachment(s)
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

AlMod 12-21-2006 13:47

Re: Adminglow
 
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 :nono:

BoOnSpoOn 12-21-2006 13:51

Re: Adminglow
 
So can you tell me what to write else? :) I am no Scripter

[ --<-@ ] Black Rose 12-21-2006 18:45

Re: Adminglow
 
Quote:

Originally Posted by AlMod (Post 418152)
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 :nono:

#define KZ_LEVEL ADMIN_KICK

BoOnSpoOn 12-21-2006 18:49

Re: Adminglow
 
Quote:

#define KZ_LEVEL ADMIN_KICK
Already stands there ^^

[ --<-@ ] Black Rose 12-21-2006 18:54

Re: Adminglow
 
Yes I know, he said it wouldn't work.


All times are GMT -4. The time now is 22:29.

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