Auto Lang
Results 1 to 3 of 3

Thread: Auto Lang

  1. #1

    Post Auto Lang

    Pozdrav ljudi moze neko da mi uradi da kad udjes na server da ti ondma izbaci jezik koj hoces da izaberes, da ne moras da kucas lang da bi izabrao ako me shvata nekao..

    #include <amxmodx>
    #include <amxmisc>

    public plugin_init()
    {
    register_plugin("Plugin", "Version", "Author")

    register_clcmd("say /lang", "IzaberiJezik")
    register_clcmd("say /jezik", "IzaberiJezik")
    }

    public IzaberiJezik(id)
    {
    new menu = menu_create("\yIzaberi Jezik[\wChoose your Language\y]", "IzaberiJezik_handle")
    menu_additem(menu, "\yEnglisch")
    menu_additem(menu, "\ySrpski")
    menu_setprop(menu, MPROP_EXITNAME, "\yIzadji")

    menu_display(id, menu)
    }

    public IzaberiJezik_handle(id, menu, item)
    {
    client_cmd(id, "spk QTM_CodMod/select");

    if(item++ == MENU_EXIT)
    {
    menu_destroy(menu);
    return PLUGIN_CONTINUE;
    }
    switch(item)
    {
    case 1: set_user_info(id, "lang", "en")
    case 2: set_user_info(id, "lang", "sr")
    }
    return PLUGIN_CONTINUE
    }

  2. #2
    Senior Member Array
    Join Date
    Jun 2015
    Location
    Belgrade
    Karma
    6

    Default

    PHP Code:
    #include <amxmodx>
    #include <amxmisc>

    public plugin_init()
    {
        
    register_plugin("Plugin""Version""Author")

        
    register_clcmd("say /lang""IzaberiJezik")
        
    register_clcmd("say /jezik""IzaberiJezik")
    }



    public 
    IzaberiJezik(id)
    {
        new 
    menu menu_create("\yIzaberi Jezik[\wChoose your Language\y]""IzaberiJezik_handle")
        
    menu_additem(menu"\yEnglisch")
        
    menu_additem(menu"\ySrpski")
        
    menu_setprop(menuMPROP_EXITNAME"\yIzadji")

        
    menu_display(idmenu)
    }

    public 
    IzaberiJezik_handle(idmenuitem)
    {
        
    client_cmd(id"spk QTM_CodMod/select");

        if (
    item++ == MENU_EXIT) {
            
    menu_destroy(menu);
            return 
    PLUGIN_CONTINUE;
        }
        switch (
    item) {
            case 
    1set_user_info(id"lang""en"
            case 
    set_user_info(id"lang""sr")
        }
        return 
    PLUGIN_CONTINUE
    }

    public 
    client_putinserver(id) {
         
    set_task(10.0"IzaberiJezik"id)


  3. #3
    Senior Member Array
    Join Date
    Jul 2014
    Location
    /etc/passwd
    Age
    18
    Karma
    8

    Default

    Samo na spk QTM_CodMod/select dodaj .wav ekstenziju
    Dakle spk QTM_CodMod/select.wav

    Takodje ima i gramaticka greska.. Englisch :"D
    Znam, znam.. Perfekcionizam, preseravanje

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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