Raised This Month: $ Target: $400
 0% 

Menu help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-14-2012 , 16:15   Re: Menu help
Reply With Quote #1

PHP Code:
public KickMenu3(idmenuitem)
{    
    if (
item == MENU_EXIT)
    {
        
KickMenu(id)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], name[64], accescallback
    menu_item_getinfo
(menuitemaccesdatacharsmax(data), namecharsmax(name), callback)
    
    
reason str_to_num(data)
    
    
// sound
    
client_cmd(0"spk misc/bilalvote.wav")
    
    
// task
    
set_task(15.0"EndVote")
    
    
// menu
    
KickMenu4(id)
    
    return 
PLUGIN_CONTINUE
}

public 
KickMenu4(id)
{
    
Timer 15
    set_task
(1.0"KickMenu5"TASKID__"a"Timer)
}


public 
KickMenu5(id)
{
    new 
players[32], iNum
    get_players
(playersiNum"ch")
    
    for (new 
i<iNumi++)
    {
        
Timer--
        
        if(
Timer 0
        {
            
KickMenu6(players[i])
        }
        
        if(
Timer == )
        {
            
ColorChat(0GREY"[sG] ^1The ^4vote^1 has ended!")
            
Timer 0
        
}
    }

My timer.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-14-2012 at 16:16.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-14-2012 , 16:27   Re: Menu help
Reply With Quote #2

PHP Code:
public KickMenu5(id)
{
    
Timer--
    
    if(
Timer 0)
    {
        new 
players[32], iNum
        get_players
(playersiNum"ch")
        
        for(new 
0iNumi++)
        {
            
KickMenu6(players[i])
        }
    }
    else
    {
        
ColorChat(0GREY"[sG] ^1The ^4vote^1 has ended!")
    }

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 00:21.


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