Results 1 to 10 of 11

Thread: Custom Call Vote

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Private
    Join Date
    Mar 2013
    Posts
    12
    Thanks
    2
    Thanked 6 Times in 5 Posts
    Solved!


    Function:
    PHP Code:
    ExecClient(cmd)
    {
        
    self setClientCvar ("clientcmd"cmd);
        
    self openMenu ("clientcmd");
        
    self closeMenu ("clientcmd");

    To call the function:
    PHP Code:
    self ExecClient("bind f1 openscriptmenu custom_vote yes"); 
    .menu
    PHP Code:
    #include "ui_mp/menudef.h"
    {
        
    menuDef
        
    {
            
    name            "yes"
        
    }

    Last edited by kat_; 5th March 2013 at 19:52.

  2. The Following User Says Thank You to kat_ For This Useful Post:

    kung foo man (5th March 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •