Raised This Month: $ Target: $400
 0% 

Team Select Menu Customizer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 05-31-2014 , 15:04   Team Select Menu Customizer
Reply With Quote #1

What exatly I need, is create a function that will print in chat what team/class the player choosed.
At the end of this code you will se the "print_chat", it works fine, but how can I modify the class names? Default it shows as: Player joined gign, leet, sas... I want to rename that, possible?

PHP Code:
public class_menu_handler(idkey)
{
    new 
iMenuMsgid g_iMsgId[id];
    new 
iMsgBlock get_msg_block(iMenuMsgid);
    
set_msg_block(iMenuMsgidBLOCK_SET);
    
engclient_cmd(id"joinclass""1");
    
set_msg_block(iMenuMsgidiMsgBlock);

    
format(g_szPlayerModel[id], 127"%s"get_class_info(g_iUserTeam[id], keyCLASS_TAG));

    
//Auto-select
    
if(key == g_iCount[g_iUserTeam[id]])
        
get_random_class_tag(idg_iUserTeam[id], g_szPlayerModel[id], 127);

    
set_user_info(idMODELg_szPlayerModel[id]);
    
// see this
    
new szName[32]
    
get_user_name(idszNamecharsmax(szName)) 
    
client_print(0print_chat"%s as joined %s"szNameg_szPlayerModel[id])

    
g_bChanged[id] = true;


    return 
PLUGIN_HANDLED

CHE4TER 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 09:35.


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