• Real-Arena
  • Contact
  • Cash Money
  • Prezintă-te
  • Counter-Strike
  • Metin2
  • Minecraft
  • SA:MP
  • [SHOP] Steam, Gift, Cards, Items
  • Giveaway STEAM
  • AcasaAcasa  IndexIndex  Regulament  Cont Premium  Ultimele imaginiUltimele imagini  CăutareCăutare  ÎnregistrareÎnregistrare  ConectareConectare  

    Distribuiţi
     

     Advanced Mix - Menu + Comenzi [v1.8] + [v2.0]

    Vezi subiectul anterior Vezi subiectul urmator In jos 
    AutorMesaj
    [RLA] # HazZaRD
    Utilizator Premium
    [RLA] # HazZaRD
    Dark Addicted
    Mesaje : 541
    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Empty
    MesajSubiect: Advanced Mix - Menu + Comenzi [v1.8] + [v2.0]   
    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] I_icon_minitimeDum 07 Feb 2016, 02:19

    Descriere: Acest plugin este perfect pentru serverele de war, adminii pot face tot ce doresc dintr-un meniu simplu.
    Descarcare:
    v1.8
    v2.0

    Nume: Advanced Mix
    Versiune: 1.8 - 2.0
    Link oficial: -

    Instalare:
    1. Fisierul mixmenu.sma il puneti in addons/amxmodx/scripting
    2. Fisierul mixmenu.amxx il puneti in addons/amxmodx/plugins
    3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
    Cod:
    mixmenu.amxx
    4. Alti pasi necesari....

    Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

      v1.8amx_demprefix orice - schimba prefixul care apare inainte de demo. (ex orice_demo)amx_pw mix123 - schimba parola care este setata din meniu.amx_cmdprefix extreamCS - schimba prefixul comenzilor


    v2.0

      amx_sfarsitmix - reprezinta numarul rundelor dupa care se termina mix-ul (de ex. T castiga 9, CT castiga 7, scor total 16 mix-ul se termina.)


    Comenzi administrative -

    Comenzi publice (se tasteaza in joc prin apasarea tastei Y):

    v1.8


      /mixmenu - afiseaza meniul.mixmenu - afiseaza meniul


    v2.0


      /mixmenu - afiseaza meniul.mixmenu - afiseaza meniul/warm - Runda de incalzire.warm - Runda de incalzire/alegeri - Alegeri.alegeri - Alegeri/start - Porneste MIX-ul.start - Porneste MIX-ul/changeteam - Schimba echipele intre ele.changeteam - Schimba echipele intre ele/setpw - Adauga parola.setpw - Adauga parola/removepw - Scoate parola.removepw - Scoate parola/score - Afiseaza scorul.score - Afiseaza scorul


    Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
    - CStrike
    - Fun

    Imagini:

    v2.0

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_01_Jun_03_17_59

    v1.8

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_01_Jun_02_13_04

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_03_Jun_02_13_05

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_04_Jun_02_13_05

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_06_Jun_02_13_06

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_08_Jun_02_13_06

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_10_Jun_02_13_06

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_12_Jun_02_13_06

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_13_Jun_02_13_06

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_14_Jun_02_13_08

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_15_Jun_02_13_08

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0] Screen_Hunter_18_Jun_02_13_11

    Cod:
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <colorchat>

    #define PLUGIN "Meniu MIX"
    #define VERSION "1.8"
    #define AUTHOR "Edii"

    new dem, pw,cmdpre
    new demprefix[32],pwmix[32],cmdprefix[32]
    new pwon = 0
    new teamA = 0
    new teamB = 0
    new mixon = 0
    new schimbate = 0

    public plugin_init()
    {

    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /mixmenu", "mixmenu", ADMIN_KICK)
    register_clcmd("say .mixmenu", "mixmenu", ADMIN_KICK)

    register_event("HLTV", "new_round", "a", "1=0", "2=0")  
    register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
    register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")  

    dem = register_cvar("amx_demprefix","aimshot")
    pw = register_cvar("amx_pw","mix123")
    cmdpre = register_cvar("amx_cmdprefix","eXtreamCS")
    }


    public t_win() {
    if ( schimbate == 0 ) {
    teamA = teamA+1
    }
    else {
    teamB = teamB +1
    }
    }

    public ct_win() {
    if ( schimbate == 0 ) {
    teamB  = teamB +1
    }
    else {
    teamA = teamA +1
    }

    }

    public new_round(){
    if ( schimbate == 1 )
    {
    if ( teamA + teamB == 16 ) {
    if ( teamA > teamB ) {

    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 MIX-UL A FOST CASTIGAT DE ^x03 TEAM A (CT)", cmdprefix);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 SCOR FINAL ^x03 %d - %d ",cmdprefix, teamA, teamB);
    mixon = 0
    }

    if ( teamB > teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 MIX-UL A FOST CASTIGAT DE ^x03 TEAM B (T)", cmdprefix);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 SCOR FINAL ^x03 %d - %d ",cmdprefix,teamB,teamA);
    mixon = 0
    }
    }

    }
    }


    public mixmenu(id)
    {
    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX-MENU]^x03 Nu ai acces la acest meniu!")
    return PLUGIN_HANDLED
    }
    new menu = menu_create("\yAdvanced Mix Menu^n", "menu_handler")
    menu_additem(menu, "\wRunda de incalzire \r(WARM)", "1", 0)
    menu_additem(menu, "\wAlegeri", "2", 0)
    menu_additem(menu, "\wPorneste \rMIX-ul", "3", 0)
    menu_additem(menu, "\wSchimba echipele intre ele", "4", 0)
    menu_additem(menu, "\wAdauga parola", "5", 0)
    menu_additem(menu, "\wScoate parola", "6", 0)
    menu_additem(menu, "\wAfiseaza scorul", "7", 0)
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
    }

    public menu_handler(id, menu, item)
    {
    if(!get_user_flags(id) && ADMIN_KICK)
    {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 Nu ai acces la acest meniu!", cmdprefix);
    return PLUGIN_HANDLED
    }

    switch(item)
    {
    case 0:
    {
    client_cmd(0, "ex_interp 0.01");
    client_cmd(0, "rate 25000");
    client_cmd(0, "cl_updaterate 101");
    client_cmd(0, "cl_cmdrate 101");
    client_cmd(0, "fps_max 101");

    get_pcvar_string(cmdpre,cmdprefix,50);
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "0" );
    set_cvar_string ( "mp_startmoney", "16000" );
    mixon = 0;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 -----", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------------- ^x03[^x04 %s ^x03] SPOR LA FRAG! ^x04 ------------", cmdprefix);
    menu_destroy(menu)
    }
    case 1:
    {
    new iPlayers[ 32 ], iNum, iPlayer
    get_players( iPlayers, iNum )

    for ( new a = 0; a < iNum; a++ )
    {
    iPlayer = iPlayers[ a ];

    switch ( cs_get_user_team( iPlayer ) )
    {
    case CS_TEAM_T: cs_set_user_team( iPlayer, CS_TEAM_SPECTATOR )
    case CS_TEAM_CT: cs_set_user_team( iPlayer, CS_TEAM_SPECTATOR )
    }
    }
    get_pcvar_string(cmdpre,cmdprefix,50);
    client_cmd(0, "kill");
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "sv_freezetime", "0");
    mixon = 0;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ---------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------------ ^x03[^x04 %s ^x03] ALEGERI ! ^x04 --------", cmdprefix);
    menu_destroy(menu)
    }
    case 2:
    {
    client_cmd(0, "ex_interp 0.01");
    client_cmd(0, "rate 25000");
    client_cmd(0, "cl_updaterate 101");
    client_cmd(0, "cl_cmdrate 101");
    client_cmd(0, "fps_max 101");

    get_pcvar_string(cmdpre,cmdprefix,50);
    get_pcvar_string(dem,demprefix,50);
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "8" );
    set_cvar_string ( "mp_startmoney", "800" );
    client_cmd(0,"record %s_demo",demprefix);
    mixon = 1;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] MIX-UL A INCEPUT ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ----------- ^x03[^x04 %s ^x03] SPOR LA FRAG ! ^x04 --------", cmdprefix);
    menu_destroy(menu)
    }
    case 3:
    {
    new iPlayers[ 32 ], iNum, iPlayer
    get_players( iPlayers, iNum )

    for ( new a = 0; a < iNum; a++ )
    {
    iPlayer = iPlayers[ a ];

    switch ( cs_get_user_team( iPlayer ) )
    {
    case CS_TEAM_T: cs_set_user_team( iPlayer, CS_TEAM_CT )
    case CS_TEAM_CT: cs_set_user_team( iPlayer, CS_TEAM_T )
    }
    }

    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "8" );
    set_cvar_string ( "mp_startmoney", "800" );
    schimbate = 1

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 --------", cmdprefix);
    menu_destroy(menu)
    }

    case 4:
    {
    if(pwon == 0)
    {
    get_pcvar_string(cmdpre,cmdprefix,50);

    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] PAROLA SERVERULUI A FOST SETATA PE [^x04 ON ]", cmdprefix);
    get_pcvar_string(pw,pwmix,50);
    server_cmd( "sv_password %d", pwmix);
    pwon = 1;
    }
    else {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(id, GREEN, "^x03[^x04 %s ^x03] SERVERUL ARE DEJA  PAROLA !", cmdprefix);
    }
    menu_destroy(menu)
    }
    case 5:
    {
    if(pwon == 0)
    {

    ColorChat(id, GREEN, "^x03[^x04 %s ^x03] SERVERUL NU ARE PAROLA !", cmdprefix);
    }
    else {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] PAROLA SERVERULUI A FOST SETATA PE [^x04 OFF ]", cmdprefix);
    set_cvar_string("sv_password", "");
    pwon = 0;
    }
    menu_destroy(menu)
    }
    case 6:
    {
    if ( mixon == 1 )
    {
    if ( teamA > teamB ){
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d PENTRU TEAM A", cmdprefix,teamA,teamB );
    }
    if ( teamB > teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d PENTRU TEAM B", cmdprefix,teamB ,teamA);
    }
    if ( teamB == teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d (EGAL)", cmdprefix,teamB ,teamA);
    }
    }
    else
    {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] MIX-UL NU A INCEPUT !", cmdprefix);
    }
    menu_destroy(menu)

    }
    case MENU_EXIT:
    {
    menu_destroy(menu)
    return PLUGIN_HANDLED
    }
    }
    mixmenu(id)
    return PLUGIN_HANDLED
    }

    public client_disconnect(id){
    if (get_playersnum() == 0)
    set_cvar_string("sv_password", "");

    }[/sursa]

    [sursa=.SMA v2.0]#include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <colorchat>

    #define PLUGIN "Meniu MIX"
    #define VERSION "1.8"
    #define AUTHOR "Edii"

    new dem, pw,cmdpre,sfarsit
    new demprefix[32],pwmix[32],cmdprefix[32],sfarsitmix[32]
    new pwon = 0
    new teamA = 0
    new teamB = 0
    new mixon = 0
    new schimbate = 0

    public plugin_init()
    {
    // Meniu mix

    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /mixmenu", "mixmenu", ADMIN_KICK)
    register_clcmd("say .mixmenu", "mixmenu", ADMIN_KICK)
    register_clcmd("say_team /mixmenu", "mixmenu", ADMIN_KICK)
    register_clcmd("say_team .mixmenu", "mixmenu", ADMIN_KICK)

    // Warm
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /warm", "warm", ADMIN_KICK)
    register_clcmd("say .warm", "warm", ADMIN_KICK)
    register_clcmd("say_team /warm", "warm", ADMIN_KICK)
    register_clcmd("say_team .warm", "warm", ADMIN_KICK)

    // Alegeri
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /alegeri", "alegeri", ADMIN_KICK)
    register_clcmd("say .alegeri", "alegeri", ADMIN_KICK)
    register_clcmd("say_team /alegeri", "alegeri", ADMIN_KICK)
    register_clcmd("say_team .alegeri", "alegeri", ADMIN_KICK)

    // Start Mix
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /start", "startmix", ADMIN_KICK)
    register_clcmd("say .start", "startmix", ADMIN_KICK)
    register_clcmd("say_team /start", "startmix", ADMIN_KICK)
    register_clcmd("say_team .start", "startmix", ADMIN_KICK)

    // Change team
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /changeteam", "schimbari", ADMIN_KICK)
    register_clcmd("say .changeteam", "schimbari", ADMIN_KICK)
    register_clcmd("say_team /changeteam", "schimbari", ADMIN_KICK)
    register_clcmd("say_team .changeteam", "schimbari", ADMIN_KICK)

    // Set pw
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /setpw", "setpw", ADMIN_KICK)
    register_clcmd("say .setpw", "setpw", ADMIN_KICK)
    register_clcmd("say_team /setpw", "setpw", ADMIN_KICK)
    register_clcmd("say_team .setpw", "setpw", ADMIN_KICK)

    // Remove pw
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /removepw", "removepw", ADMIN_KICK)
    register_clcmd("say .removepw", "removepw", ADMIN_KICK)
    register_clcmd("say_team /removepw", "removepw", ADMIN_KICK)
    register_clcmd("say_team .removepw", "removepw", ADMIN_KICK)

    // Score
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /score", "scor", ADMIN_KICK)
    register_clcmd("say .score", "scor", ADMIN_KICK)
    register_clcmd("say_team /score", "scor", ADMIN_KICK)
    register_clcmd("say_team .score", "scor", ADMIN_KICK)

    register_event("HLTV", "new_round", "a", "1=0", "2=0")  
    register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
    register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")  

    dem = register_cvar("amx_demprefix","aimshot")
    pw = register_cvar("amx_pw","mix123")
    cmdpre = register_cvar("amx_cmdprefix","eXtreamCS")
    sfarsit = register_cvar("amx_sfarsitmix","16")
    }


    public t_win() {
    if ( schimbate == 0 ) {
    teamA = teamA+1
    }
    else {
    teamB = teamB +1
    }
    }

    public ct_win() {
    if ( schimbate == 0 ) {
    teamB  = teamB +1
    }
    else {
    teamA = teamA +1
    }

    }

    public new_round(){
    if ( schimbate == 1 )
    {
    get_pcvar_string(sfarsit,sfarsitmix,50);
    if ( teamA + teamB == sfarsit) {
    if ( teamA > teamB ) {

    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 MIX-UL A FOST CASTIGAT DE ^x03 TEAM A (CT)", cmdprefix);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 SCOR FINAL ^x03 %d - %d ",cmdprefix, teamA, teamB);
    mixon = 0
    }

    if ( teamB > teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 MIX-UL A FOST CASTIGAT DE ^x03 TEAM B (T)", cmdprefix);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 SCOR FINAL ^x03 %d - %d ",cmdprefix,teamB,teamA);
    mixon = 0
    }
    }

    }
    }


    public mixmenu(id)
    {
    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX-MENU]^x03 Nu ai acces la acest meniu!")
    return PLUGIN_HANDLED
    }
    new menu = menu_create("\yAdvanced \rMix \yMenu^n", "menu_handler")
    menu_additem(menu, "\wRunda de incalzire - \r/warm", "1", 0)
    menu_additem(menu, "\wAlegeri - \r/alegeri", "2", 0)
    menu_additem(menu, "\wPorneste MIX-ul - \r/start", "3", 0)
    menu_additem(menu, "\wSchimba echipele intre ele - \r/changeteam", "4", 0)
    menu_additem(menu, "\wAdauga parola - \r/setpw", "5", 0)
    menu_additem(menu, "\wScoate parola - \r/removepw", "6", 0)
    menu_additem(menu, "\wAfiseaza scorul - \r/score", "7", 0)
    menu_display(id, menu, 0)
    return PLUGIN_HANDLED
    }

    public menu_handler(id, menu, item)
    {
    if(!get_user_flags(id) && ADMIN_KICK)
    {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03]^x04 Nu ai acces la acest meniu!", cmdprefix);
    return PLUGIN_HANDLED
    }

    switch(item)
    {
    case 0:
    {
    client_cmd(0, "ex_interp 0.01");
    client_cmd(0, "rate 25000");
    client_cmd(0, "cl_updaterate 101");
    client_cmd(0, "cl_cmdrate 101");
    client_cmd(0, "fps_max 101");

    get_pcvar_string(cmdpre,cmdprefix,50);
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "0" );
    set_cvar_string ( "mp_startmoney", "16000" );
    mixon = 0;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 -----", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------------- ^x03[^x04 %s ^x03] SPOR LA FRAG! ^x04 ------------", cmdprefix);
    menu_destroy(menu)
    }
    case 1:
    {
    new iPlayers[ 32 ], iNum, iPlayer
    get_players( iPlayers, iNum )

    for ( new a = 0; a < iNum; a++ )
    {
    iPlayer = iPlayers[ a ];

    switch ( cs_get_user_team( iPlayer ) )
    {
    case CS_TEAM_T: cs_set_user_team( iPlayer, CS_TEAM_SPECTATOR )
    case CS_TEAM_CT: cs_set_user_team( iPlayer, CS_TEAM_SPECTATOR )
    }
    }
    get_pcvar_string(cmdpre,cmdprefix,50);
    client_cmd(0, "kill");
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "sv_freezetime", "0");
    mixon = 0;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ---------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------------ ^x03[^x04 %s ^x03] ALEGERI ! ^x04 --------", cmdprefix);
    menu_destroy(menu)
    }
    case 2:
    {
    client_cmd(0, "ex_interp 0.01");
    client_cmd(0, "rate 25000");
    client_cmd(0, "cl_updaterate 101");
    client_cmd(0, "cl_cmdrate 101");
    client_cmd(0, "fps_max 101");

    get_pcvar_string(cmdpre,cmdprefix,50);
    get_pcvar_string(dem,demprefix,50);
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "8" );
    set_cvar_string ( "mp_startmoney", "800" );
    client_cmd(0,"record %s_demo",demprefix);
    mixon = 1;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] MIX-UL A INCEPUT ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ----------- ^x03[^x04 %s ^x03] SPOR LA FRAG ! ^x04 --------", cmdprefix);
    menu_destroy(menu)
    }
    case 3:
    {
    new iPlayers[ 32 ], iNum, iPlayer
    get_players( iPlayers, iNum )

    for ( new a = 0; a < iNum; a++ )
    {
    iPlayer = iPlayers[ a ];

    switch ( cs_get_user_team( iPlayer ) )
    {
    case CS_TEAM_T: cs_set_user_team( iPlayer, CS_TEAM_CT )
    case CS_TEAM_CT: cs_set_user_team( iPlayer, CS_TEAM_T )
    }
    }

    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "8" );
    set_cvar_string ( "mp_startmoney", "800" );
    schimbate = 1

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 --------", cmdprefix);
    menu_destroy(menu)
    }

    case 4:
    {
    if(pwon == 0)
    {
    get_pcvar_string(cmdpre,cmdprefix,50);

    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] PAROLA SERVERULUI A FOST SETATA PE [^x04 ON ]", cmdprefix);
    get_pcvar_string(pw,pwmix,50);
    server_cmd( "sv_password %d", pwmix);
    pwon = 1;
    }
    else {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(id, GREEN, "^x03[^x04 %s ^x03] SERVERUL ARE DEJA  PAROLA !", cmdprefix);
    }
    menu_destroy(menu)
    }
    case 5:
    {
    if(pwon == 0)
    {

    ColorChat(id, GREEN, "^x03[^x04 %s ^x03] SERVERUL NU ARE PAROLA !", cmdprefix);
    }
    else {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] PAROLA SERVERULUI A FOST SETATA PE [^x04 OFF ]", cmdprefix);
    set_cvar_string("sv_password", "");
    pwon = 0;
    }
    menu_destroy(menu)
    }
    case 6:
    {
    if ( mixon == 1 )
    {
    if ( teamA > teamB ){
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d PENTRU TEAM A", cmdprefix,teamA,teamB );
    }
    if ( teamB > teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d PENTRU TEAM B", cmdprefix,teamB ,teamA);
    }
    if ( teamB == teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d (EGAL)", cmdprefix,teamB ,teamA);
    }
    }
    else
    {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] MIX-UL NU A INCEPUT !", cmdprefix);
    }
    menu_destroy(menu)

    }
    case MENU_EXIT:
    {
    menu_destroy(menu)
    return PLUGIN_HANDLED
    }
    }
    mixmenu(id)
    return PLUGIN_HANDLED
    }

    public client_disconnect(id){
    if (get_playersnum() == 0)
    set_cvar_string("sv_password", "");
    }

    public warm(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {
    client_cmd(0, "ex_interp 0.01");
    client_cmd(0, "rate 25000");
    client_cmd(0, "cl_updaterate 101");
    client_cmd(0, "cl_cmdrate 101");
    client_cmd(0, "fps_max 101");

    get_pcvar_string(cmdpre,cmdprefix,50);
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "0" );
    set_cvar_string ( "mp_startmoney", "16000" );
    mixon = 0;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 -----", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] RUNDA DE INCALZIRE A INCEPUT ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------------- ^x03[^x04 %s ^x03] SPOR LA FRAG! ^x04 ------------", cmdprefix);

    }
    return PLUGIN_HANDLED
    }

    public alegeri(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {
    new iPlayers[ 32 ], iNum, iPlayer
    get_players( iPlayers, iNum )

    for ( new a = 0; a < iNum; a++ )
    {
    iPlayer = iPlayers[ a ];

    switch ( cs_get_user_team( iPlayer ) )
    {
    case CS_TEAM_T: cs_set_user_team( iPlayer, CS_TEAM_SPECTATOR )
    case CS_TEAM_CT: cs_set_user_team( iPlayer, CS_TEAM_SPECTATOR )
    }
    }
    get_pcvar_string(cmdpre,cmdprefix,50);
    client_cmd(0, "kill");
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "sv_freezetime", "0");
    mixon = 0;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ---------- ^x03[^x04 %s ^x03] ALEGERI ! ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------------ ^x03[^x04 %s ^x03] ALEGERI ! ^x04 --------", cmdprefix);

    }
    return PLUGIN_HANDLED
    }

    public startmix(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {
    client_cmd(0, "ex_interp 0.01");
    client_cmd(0, "rate 25000");
    client_cmd(0, "cl_updaterate 101");
    client_cmd(0, "cl_cmdrate 101");
    client_cmd(0, "fps_max 101");

    get_pcvar_string(cmdpre,cmdprefix,50);
    get_pcvar_string(dem,demprefix,50);
    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "8" );
    set_cvar_string ( "mp_startmoney", "800" );
    client_cmd(0,"record %s_demo",demprefix);
    mixon = 1;
    schimbate = 0;
    teamA = 0
    teamB = 0

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] MIX-UL A INCEPUT ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] MIX-UL A INCEPUT !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ----------- ^x03[^x04 %s ^x03] SPOR LA FRAG ! ^x04 --------", cmdprefix);

    }
    return PLUGIN_HANDLED
    }

    public schimbari(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {
    new iPlayers[ 32 ], iNum, iPlayer
    get_players( iPlayers, iNum )

    for ( new a = 0; a < iNum; a++ )
    {
    iPlayer = iPlayers[ a ];

    switch ( cs_get_user_team( iPlayer ) )
    {
    case CS_TEAM_T: cs_set_user_team( iPlayer, CS_TEAM_CT )
    case CS_TEAM_CT: cs_set_user_team( iPlayer, CS_TEAM_T )
    }
    }

    set_cvar_string ( "sv_restart", "1" );
    set_cvar_string ( "mp_freezetime", "8" );
    set_cvar_string ( "mp_startmoney", "800" );
    schimbate = 1

    ColorChat(0, GREEN, "^x04 ------ ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE ! ^x04 ------", cmdprefix);
    ColorChat(0, GREEN, "^x04 ------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 -------", cmdprefix);
    ColorChat(0, GREEN, "^x04 -------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 --------", cmdprefix);
    ColorChat(0, GREEN, "^x04 --------- ^x03[^x04 %s ^x03] ECHIPELE AU FOST SCHIMBATE INTRE ELE !  ^x04 --------", cmdprefix);

    }
    return PLUGIN_HANDLED
    }

    public setpw(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {
    if(pwon == 0)
    {
    get_pcvar_string(cmdpre,cmdprefix,50);

    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] PAROLA SERVERULUI A FOST SETATA PE [^x04 ON ]", cmdprefix);
    get_pcvar_string(pw,pwmix,50);
    server_cmd( "sv_password %d", pwmix);
    pwon = 1;
    }
    else {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(id, GREEN, "^x03[^x04 %s ^x03] SERVERUL ARE DEJA  PAROLA !", cmdprefix);

    }


    }
    return PLUGIN_HANDLED
    }

    public removepw(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {

    if(pwon == 0)
    {

    ColorChat(id, GREEN, "^x03[^x04 %s ^x03] SERVERUL NU ARE PAROLA !", cmdprefix);
    }
    else {
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] PAROLA SERVERULUI A FOST SETATA PE [^x04 OFF ]", cmdprefix);
    set_cvar_string("sv_password", "");
    pwon = 0;
    }
    }
    return PLUGIN_HANDLED
    }

    public scor(id){

    if(!get_user_flags(id) && ADMIN_KICK)
    {
    ColorChat(id, GREEN, "^x04 [MIX]^x03 Nu ai acces la acest la aceasta comanda!")
    return PLUGIN_HANDLED
    }
    else {
    if ( mixon == 1 )
    {
    if ( teamA > teamB ){
    get_pcvar_string(cmdpre,cmdprefix,50);
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d PENTRU TEAM A", cmdprefix,teamA,teamB );
    }
    if ( teamB > teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d PENTRU TEAM B", cmdprefix,teamB ,teamA);
    }
    if ( teamB == teamA ) {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] SCORUL ESTE %d - %d (EGAL)", cmdprefix,teamB ,teamA);
    }
    }
    else
    {
    ColorChat(0, GREEN, "^x03[^x04 %s ^x03] MIX-UL NU A INCEPUT !", cmdprefix);
    }

    }
    return PLUGIN_HANDLED}


    Ai o comunitate, dar te-ai saturat de probleme? Vino pe Real-Arena.
    Sus In jos
     

    Advanced Mix - Menu + Comenzi [v1.8] + [v2.0]

    Vezi subiectul anterior Vezi subiectul urmator Sus 
    Pagina 1 din 1

    Real-Arena România :: Jocuri - Tutoriale şi resurse :: Counter-Strike 1.6 :: Plugin-uri-