Raised This Month: $60 Target: $400
 15% 

JailBreak Glow Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
izzle
Senior Member
Join Date: Aug 2009
Old 10-31-2009 , 16:33   JailBreak Glow Menu
Reply With Quote #1

JailBreak Glow Menu

Description:
Just a simple plugin that allows CTs to type /glow and a list of all the alive terrorist will appear, then they can then select a terrorist to have a freeday!

Change Log:
1.0
Initial release
1.1
Says who gave who a freeday
Uses set_user_rendering()

Credits:
Javivi
- Changed to set_user_rendering()
Attached Files
File Type: sma Get Plugin or Get Source (JBGlowMenu.sma - 10901 views - 1.8 KB)

Last edited by izzle; 11-01-2009 at 07:39.
izzle is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-31-2009 , 16:52   Re: JailBreak Glow Menu
Reply With Quote #2

nice plugin, but at the same time abusive >.>
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
dudeno
Member
Join Date: May 2007
Old 10-31-2009 , 19:34   Re: JailBreak Glow Menu
Reply With Quote #3

I think it would be nice to add a feature like where the CTs can put to a vote about the said person getting free day, Would be a good and bad idea cause some CTs might use it to make sure ppl dont get free days
dudeno is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 10-31-2009 , 20:16   Re: JailBreak Glow Menu
Reply With Quote #4

set_user_rendering from fun module is faster than fakemeta conversion
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-31-2009 , 20:29   Re: JailBreak Glow Menu
Reply With Quote #5

Quote:
Originally Posted by dudeno View Post
I think it would be nice to add a feature like where the CTs can put to a vote about the said person getting free day, Would be a good and bad idea cause some CTs might use it to make sure ppl dont get free days
Then it would end up being a chaotic server.

It's best if the CT has a time interval on how many the player can glow on
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
stevenisecko138
Senior Member
Join Date: Dec 2008
Location: CA
Old 10-31-2009 , 23:56   Re: JailBreak Glow Menu
Reply With Quote #6

Quote:
Originally Posted by DruGzOG View Post
nice plugin, but at the same time abusive >.>
yep what he said maybe there can be a feature that ties with a vote of some kind
stevenisecko138 is offline
Send a message via AIM to stevenisecko138
wahmeng
Junior Member
Join Date: Oct 2009
Old 11-01-2009 , 00:09   Re: JailBreak Glow Menu
Reply With Quote #7

Okay. this is what i found. >> glow doesnt stop when round end
wahmeng is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-01-2009 , 06:21   Re: JailBreak Glow Menu
Reply With Quote #8

Use set_user_rendering() from fun and not fm_set_rendering(), it's more efficient.
__________________
Arkshine is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 11-01-2009 , 06:26   Re: JailBreak Glow Menu
Reply With Quote #9

Try with this
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("JailBreak Glow Menu""1.1""izzle")
    
register_clcmd"say /glow","JBGlowMenu");
    
register_clcmd"say_team /glow","JBGlowMenu");
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
}

public 
fw_PlayerSpawn_Post(id)
{
    
set_user_rendering(id)    
}

public 
JBGlowMenu(id)
{
    if (
cs_get_user_team(id) != CS_TEAM_CT || !is_user_alive(id))
    { 
        return 
PLUGIN_HANDLED;
    }
    new 
menu menu_create("\rJB Glow Menu:""sub_menu");
    
    new 
players[32], pnumtempid;
    new 
szName[32], szTempid[10];
    
    
get_players(playerspnum"a");
    
    for( new 
ii<pnumi++ )
    {
        
tempid players[i];
        
        if (
cs_get_user_team(tempid) != CS_TEAM_T)
        {
            continue;
        }
        
        
get_user_name(tempidszName31);
        
num_to_str(tempidszTempid9);
        
menu_additem(menuszNameszTempid0);
    }
    
    
menu_display(idmenu);
    return 
PLUGIN_HANDLED;
}

public 
sub_menu(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
tempid str_to_num(data);
    new 
szName[32], szName2[32];
    
get_user_name(idszName31);
    
get_user_name(tempidszName231);
    
set_user_rendering(tempidkRenderFxGlowShell2551400kRenderNormal20)
    
set_hudmessage(02550)
    
show_hudmessage(0"[JBGM] %s gave a freeday to %s^n and is now glowing!"szNameszName2);
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;


@izzle

Remove fakemeta and add fun

And change fm_set_user_rendering to set_user_rendering

To remove the glow, you can use set_user_rendering(id)




Nice plugin.
__________________
Javivi is offline
izzle
Senior Member
Join Date: Aug 2009
Old 11-01-2009 , 07:32   Re: JailBreak Glow Menu
Reply With Quote #10

Quote:
Originally Posted by wahmeng View Post
Okay. this is what i found. >> glow doesnt stop when round end
It stops for me

Quote:
Originally Posted by Javivi View Post
Try with this
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("JailBreak Glow Menu""1.1""izzle")
    
register_clcmd"say /glow","JBGlowMenu");
    
register_clcmd"say_team /glow","JBGlowMenu");
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
}

public 
fw_PlayerSpawn_Post(id)
{
    
set_user_rendering(id)    
}

public 
JBGlowMenu(id)
{
    if (
cs_get_user_team(id) != CS_TEAM_CT || !is_user_alive(id))
    { 
        return 
PLUGIN_HANDLED;
    }
    new 
menu menu_create("\rJB Glow Menu:""sub_menu");
    
    new 
players[32], pnumtempid;
    new 
szName[32], szTempid[10];
    
    
get_players(playerspnum"a");
    
    for( new 
ii<pnumi++ )
    {
        
tempid players[i];
        
        if (
cs_get_user_team(tempid) != CS_TEAM_T)
        {
            continue;
        }
        
        
get_user_name(tempidszName31);
        
num_to_str(tempidszTempid9);
        
menu_additem(menuszNameszTempid0);
    }
    
    
menu_display(idmenu);
    return 
PLUGIN_HANDLED;
}

public 
sub_menu(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
tempid str_to_num(data);
    new 
szName[32], szName2[32];
    
get_user_name(idszName31);
    
get_user_name(tempidszName231);
    
set_user_rendering(tempidkRenderFxGlowShell2551400kRenderNormal20)
    
set_hudmessage(02550)
    
show_hudmessage(0"[JBGM] %s gave a freeday to %s^n and is now glowing!"szNameszName2);
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;


@izzle

Remove fakemeta and add fun

And change fm_set_user_rendering to set_user_rendering

To remove the glow, you can use set_user_rendering(id)




Nice plugin.
Thank you
__________________

Last edited by izzle; 11-01-2009 at 07:40.
izzle is offline
Reply


Thread Tools
Display Modes

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:50.


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