Raised This Month: $ Target: $400
 0% 

Help menu if you have players add glow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Toallin
Junior Member
Join Date: Jun 2014
Old 06-20-2014 , 00:08   Help menu if you have players add glow
Reply With Quote #1

I come to ask for some help

What happens is that players have a menu to give glow
As I can add to the list when I give a glow next to your name and a Tag (glow) exit.

example:

without glow:
1. zoolk

con glow
1. zoolk (glow)

How to add the tag to the side of the name

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /giveglow""menu_glow")
}

public 
menu_glow(id

    if (
cs_get_user_team(id) != CS_TEAM_CT
    {  
        new 
menu menu_create("\rGlow Menu:""glow"); 
        
        new 
players[32], pnumtempid
        new 
szName[32], szTempid[10]; 
        
        
get_players(playerspnum"a"); 
        
        for( new 
0pnumi++ ) 
        { 
            
tempid players[i]; 
            
            if (
cs_get_user_team(tempid) != CS_TEAM_CT
                continue;
            
            
get_user_name(tempidszName31); 
            
num_to_str(tempidszTempid9); 
            
menu_additem(menuszNameszTempid0); 
        } 
        
        
menu_display(idmenu); 
        return 
PLUGIN_HANDLED
    }
    else
    {
        
client_print(idprint_chat"not have access to this command")
    }
    return 
PLUGIN_HANDLED;
}

public 
glow(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(idszName231);

        
set_user_rendering(tempidkRenderFxGlowShell25500kRenderNormal)

        
client_print(id,print_chat,"Player %s Give glow to %s"szNameszName2)
        
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED;

Whoever can help me thanks

Last edited by Toallin; 06-20-2014 at 00:10.
Toallin is offline
 



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 21:13.


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