Raised This Month: $51 Target: $400
 12% 

Solved Glow doesn't work more


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 10-24-2023 , 18:41   Glow doesn't work more
Reply With Quote #1

I modified the Jailbreak Glow Menu, but when I choose the glow does not appear on the player's body when i see in the 3rd view
(the 3rd view is from the parachute when i use it).

Script


(RAINBOW GLOW OPTION)


If anyone helps, I'd appreciate it!
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube

Last edited by King_OXO; 11-10-2023 at 08:45.
King_OXO is offline
Tote
Senior Member
Join Date: Jul 2023
Old 10-25-2023 , 10:38   Re: Glow doesn't work more
Reply With Quote #2

Does glow work fine before adding parachute?
EDIT: try using this cam https://forums.alliedmods.net/showthread.php?p=121912 (if works fine before parachute)

Last edited by Tote; 10-25-2023 at 10:39.
Tote is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 10-25-2023 , 12:26   Re: Glow doesn't work more
Reply With Quote #3

seems to have semiclip
__________________
mlibre is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 10-25-2023 , 20:43   Re: Glow doesn't work more
Reply With Quote #4

thank you both, find out the problem, prethink was giving conflict. Now it is no longer, I will add more information later
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 10-26-2023 , 21:03   Re: Glow doesn't work more
Reply With Quote #5

Working good now guys. Rainbow glow working

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include < fakemeta >
#include < engine >
#include < fun >
#include < hamsandwich >
#include <vip>

enum Color
{
    
NORMAL 1// clients scr_concolor cvar color
    
GREEN// Green Color
    
TEAM_COLOR// Red, grey, blue
    
GREY// grey
    
RED// Red
    
BLUE// Blue
}

new 
TeamName[][] = 
{
    
"",
    
"TERRORIST",
    
"CT",
    
"SPECTATOR"
}

#define PLUGIN "Jailbreak Glow Menu"
#define VERSION "3.0"
#define AUTHOR "fLaXXIE"

new const prefix[] = "^4[VIP] Glow:^3"

new iBool[33]
new 
g_iTargR 255g_iTargGg_iTargB
new R[33], G[33], B[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /glow""MainMenu"// Command for opening the glow menu.
    
register_clcmd("say /glowmenu""MainMenu"// Command for opening the glow menu.
    
register_clcmd("say /gm""MainMenu"// Command for opening the glow menu.
}

public 
MainMenu(iPlayer)
{    
    if (
is_user_alive(iPlayer) && is_user_vip(iPlayer))  
    {
        
ColorMenu(iPlayer)
    }   
    else 
ColorChat(iPlayerGREY"%s Only Alive Players can use the glow menu."prefix)
    return 
PLUGIN_HANDLED
}

public 
ColorMenu(iPlayer)
{
    new 
sub menu_create("\wVip Glow Menu^n\wSelection""ColorMenu_Handle")
    
    
menu_additem(sub"\wNone Glow""0"0)
    
menu_additem(sub"\wRed Glow""1"0)
    
menu_additem(sub"\wBlue Glow""2"0)
    
menu_additem(sub"\wWhite Glow""3"0)
    
menu_additem(sub"\wGreen Glow""4"0)
    
menu_additem(sub"\wYellow Glow""5"0)
    
menu_additem(sub"\wPurple Glow""6"0)
    
menu_additem(sub"\wPurple Glow (\d Weird\w )""7"0)
    
menu_additem(sub"\wCyan Glow""8"0)
    
menu_additem(sub"\wBlue Glow (\d Weird\w )""9"0)
    
menu_additem(sub"\wRainbow Glow""10"0)
    
    
menu_setprop(subMPROP_EXITMEXIT_ALL)
    
menu_display(iPlayersub)
    
}

public 
ColorMenu_Handle(iPlayersubitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(sub)
        return 
PLUGIN_HANDLED
    
}
    
    new 
Data[7]
    new 
AccessCallback
    menu_item_getinfo
(subitemAccessData5__Callback)
    
    new 
key str_to_num(Data)
    
    switch (
key)
    {
        case 
0
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell000kRenderNormal255)
            
ColorChat(iPlayerGREY"%s Glow Has Been Disactived"prefix )
        }
        
        case 
1
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell25500kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Red Glow^3!"prefix )
        }
        
        case 
2:
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell00255kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Blue Glow^3!"prefix )
        }
        
        case 
3:
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell255255255kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4White Glow^3!"prefix )
        }
        
        case 
4
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell02550kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Green Glow^3!"prefix)
        }
        
        case 
5:
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell2552550kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Yellow Glow^3!"prefix)
            
        }
        
        case 
6:
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell2550180kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Purple Glow^3!"prefix)
        }
        
        case 
7
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell173054255kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Purple Glow^3 (^4 Weird^3 )!"prefix)
        }
        
        case 
8:
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell0255255kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Cyan Glow^3!"prefix)
        }
        
        case 
9:
        {
            
iBool[iPlayer] = false
            set_user_rendering
(iPlayerkRenderFxGlowShell0131255kRenderNormal255)
            
ColorChat(iPlayerGREY"%s now has a ^4Blue Glow^3 (^4 Weird^3 )!"prefix)
        }
        
        case 
10:
        {
            if(!
iBool[iPlayer])
            {
                
iBool[iPlayer] = true
                ColorChat
(iPlayerGREY"%s ^4Rainbow Glow^1Activated!"prefix)
                
set_task(0.1"RainbowGlow"iPlayer__"b")
            }
            else
            {
                
iBool[iPlayer] = false
                set_user_rendering
(iPlayerkRenderFxGlowShell000kRenderNormal255)
                
ColorChat(iPlayerGREY"%s ^4Rainbow Glow ^1Disabled!"prefix)
            }
        }
        
    }
    return 
PLUGIN_HANDLED
}

public 
RainbowGlow(id)
{
    if(!
iBool[id]) return
    
    if( 
R[id] >= 255 && B[id] <= )        {g_iTargG 255g_iTargB 0;} // Red -> Yellow
    
if( G[id] >= 255 && R[id] >= 255 )        {g_iTargR 0;}        // Yellow -> Green
    // Takes too long to visually transition:
    
if( G[id] >= 255 && R[id] <= )        {g_iTargB 255;}    // Green to Turquoise
        
if( B[id] >= 255 && G[id] >= 255 )        {g_iTargG 0;}        // Turquoise to Blue
    
if( B[id] >= 255 && G[id] <= )        {g_iTargR 255;}    // Blue to Purple
    
if( B[id] >= 255 && R[id] >= 255 )        {g_iTargB 0;}        // Purple to Red

    
if        ( R[id] < g_iTargR )    R[id] += 10
    
else if    ( R[id] > g_iTargR )    R[id] -= 10
    
if        ( G[id] < g_iTargG )    G[id] += 10
    
else if    ( G[id] > g_iTargG )    G[id] -= 10
    
if        ( B[id] < g_iTargB )    B[id] += 10
    
else if    ( B[id] > g_iTargB )    B[id] -= 10

    
if( R[id] < )    R[id] = 0
    
if( G[id] < )    G[id] = 0
    
if( B[id] < )    B[id] = 0
    
if( R[id] > 255 )    R[id] = 255
    
if( G[id] > 255 )    G[id] = 255
    
if( B[id] > 255 )    B[id] = 255
    
    set_user_rendering
(idkRenderFxGlowShellR[id], G[id], B[id], kRenderNormal255)
}

ColorChat(idColor:type, const msg[], {Float,Sql,Result,_}:...)
{
    static 
message[256];

    switch(
type)
    {
        case 
NORMAL// clients scr_concolor cvar color
        
{
            
message[0] = 0x01;
        }
        case 
GREEN// Green
        
{
            
message[0] = 0x04;
        }
        default: 
// White, Red, Blue
        
{
            
message[0] = 0x03;
        }
    }

    
vformat(message[1], 251msg4);

    
// Make sure message is not longer than 192 character. Will crash the server.
    
message[192] = '^0';

    static 
teamColorChangeindexMSG_Type;
    
    if(
id)
    {
        
MSG_Type MSG_ONE;
        
index id;
    } else {
        
index FindPlayer();
        
MSG_Type MSG_ALL;
    }
    
    
team get_user_team(index);
    
ColorChange ColorSelection(indexMSG_Typetype);

    
ShowColorMessage(indexMSG_Typemessage);
        
    if(
ColorChange)
    {
        
Team_Info(indexMSG_TypeTeamName[team]);
    }
}

ShowColorMessage(idtypemessage[])
{
    
message_begin(typeget_user_msgid("SayText"), _id);
    
write_byte(id)        
    
write_string(message);
    
message_end();    
}

Team_Info(idtypeteam[])
{
    
message_begin(typeget_user_msgid("TeamInfo"), _id);
    
write_byte(id);
    
write_string(team);
    
message_end();

    return 
1;
}

ColorSelection(indextypeColor:Type)
{
    switch(
Type)
    {
        case 
RED:
        {
            return 
Team_Info(indextypeTeamName[1]);
        }
        case 
BLUE:
        {
            return 
Team_Info(indextypeTeamName[2]);
        }
        case 
GREY:
        {
            return 
Team_Info(indextypeTeamName[0]);
        }
    }

    return 
0;
}

FindPlayer()
{
    static 
i;
    
= -1;

    while(
<= get_maxplayers())
    {
        if(
is_user_connected(++i))
        {
            return 
i;
        }
    }

    return -
1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ lang1037\\ f0\\ fs16 \n\\ par }
*/ 
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube

Last edited by King_OXO; 10-26-2023 at 21:04.
King_OXO is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 10-29-2023 , 15:31   Re: Glow doesn't work more
Reply With Quote #6

I don't like PreThink since I saw it

small optimization
__________________
mlibre 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 16:12.


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