Raised This Month: $ Target: $400
 0% 

Can anyone add exit options please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Magicher0ex
Member
Join Date: Dec 2019
Old 03-17-2022 , 08:40   Can anyone add exit options please
Reply With Quote #1

I need exit option in menu
PHP Code:
public show_votemenu(id)
{
    static 
menu[512];
    new 
lenkeyspercentitem;
    
    
len formatex(menucharsmax(menu), "\y%L:^n^n"idg_iVoted[id] != NOT_VOTED "MAPM_MENU_VOTE_RESULTS" "MAPM_MENU_CHOOSE_MAP");
    
    for(
item 0item g_iVoteItems g_bCanExtenditem++) {
        
len += formatex(menu[len], charsmax(menu) - len"%s", (item == g_iVoteItems) ? "^n" "");

        if(
g_iVoted[id] == NOT_VOTED) {
            
len += formatex(menu[len], charsmax(menu) - len"\r%d.\w %s", (g_iRandomNums[item] + g_iOffset == 10 g_iRandomNums[item] + g_iOffset), g_sVoteList[item]);
            
keys |= (<< (g_iRandomNums[item] + g_iOffset));
        } else {
            
len += formatex(menu[len], charsmax(menu) - len"%s%s", (g_iRandomNums[item] + g_iOffset == g_iVoted[id]) ? "\r" "\d"g_sVoteList[item]);
        }

        if(
g_iShowPercent == PERCENT_ALWAYS || g_iVoted[id] != NOT_VOTED && g_iShowPercent == PERCENT_AFTER_VOTE) {
            
percent g_iTotalVotes floatround(g_iVotes[item] * 100.0 g_iTotalVotes) : 0;
            
len += formatex(menu[len], charsmax(menu) - len"\d[\r%d%%\d]"percent);
        }

        if(
item == g_iCurMap) {
            
len += formatex(menu[len], charsmax(menu) - len"\y[%L]"id"MAPM_MENU_EXTEND");
        }
        
        
len += formatex(menu[len], charsmax(menu) - len"^n");
    }

    
len += formatex(menu[len], charsmax(menu) - len"^n\d%L \r%d\d %L"id"MAPM_MENU_LEFT"g_iTimerid"MAPM_SECONDS");

    if(!
keyskeys = (<< 9);

    if(
g_iVoted[id] != NOT_VOTED && g_iShowType == SHOW_HUD) {
        while(
replace(menucharsmax(menu), "\r""")){}
        while(
replace(menucharsmax(menu), "\d""")){}
        while(
replace(menucharsmax(menu), "\w""")){}
        while(
replace(menucharsmax(menu), "\y""")){}
        
        
set_hudmessage(0552550.02, -1.006.01.00.10.24);
        
show_hudmessage(id"%s"menu);
    } else {
        
show_menu(idkeysmenu, -1"VoteMenu");
    }

Magicher0ex 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:57.


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