Jump to content

    Locked Runda rozgrzewkowa


    Malibu
     Share

    Recommended Posts

    • Cała zawartość 5
    • Temat został założony
    • Ostatnia odpowiedź

    Top Posters In This Topic

    Last activity:

    Runda rozgrzewkowa na DEAGLa + M4A1/Ak47.

    /* Plugin generated by AMXX-Studio */

    #include

    #include

    #include

    #include

    #define PLUGIN "New Plug-In"

    #define VERSION "1.0"

    #define AUTHOR "author"

    new bool:AutoRR = true

    new bool:heArena = false

    new const muzyka[]= "misc/rozgrzewka/nutka.mp3" || Nazwa Twojej piosenki.

    new rr_karabin

    new rr_restart

    public plugin_init() {

    register_plugin("rozgrzewka by lisek", "1.0", "lisek")

    register_event("TextMsg","restart_time","a","2Game_C")

    register_event("CurWeapon","switchweapon","be","1=1")

    rr_karabin=register_cvar("rr_karabin", "0",FCVAR_ARCHIVE)

    rr_restart=register_cvar("rr_restart", "60", FCVAR_ARCHIVE)

    }

    public switchweapon(id)

    {

    if (!heArena)

    return PLUGIN_CONTINUE

    new ammo, clip, weapon = get_user_weapon(id, ammo, clip)

    new cvar=get_pcvar_num(rr_karabin)

    if (weapon == CSW_GLOCK18 && cvar==1)

    {

    strip_user_weapons(id)

    give_item(id, "weapon_knife");

    give_item(id, "weapon_deagle");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "weapon_ak47");

    give_item(id, "ammo_762nato");

    give_item(id, "ammo_762nato");

    give_item(id, "ammo_762nato");

    give_item(id, "ammo_762nato")

    }

    else if (weapon == CSW_USP && cvar==1)

    {

    strip_user_weapons(id)

    give_item(id, "weapon_knife");

    give_item(id, "weapon_deagle");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "weapon_m4a1");

    give_item(id, "ammo_556nato");

    give_item(id, "ammo_556nato");

    give_item(id, "ammo_556nato");

    give_item(id, "ammo_556nato")

    }

    else if (weapon == CSW_USP)

    {

    strip_user_weapons(id)

    give_item(id, "weapon_knife");

    give_item(id, "weapon_deagle");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae")

    }

    else if (weapon == CSW_GLOCK18)

    {

    strip_user_weapons(id)

    give_item(id, "weapon_knife");

    give_item(id, "weapon_deagle");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae");

    give_item(id, "ammo_50ae")

    }

    return PLUGIN_CONTINUE

    }

    public restart_time()

    {

    if (AutoRR==true)

    {

    heArena = true

    pause("ac","antirusher.amxx")

    pause("ac","alt_end_round_sounds.amxx");

    set_task(get_pcvar_float(rr_restart), "restart_map",0)

    client_cmd(0,"stopsound")

    client_cmd(0,"mp3 play sound/%s", muzyka)

    }

    }

    public restart_map()

    {

    if (AutoRR==true)

    {

    set_cvar_float("sv_restart",1.0)

    heArena = false

    unpause("ac","antirusher.amxx")

    unpause("ac","alt_end_round_sounds.amxx")

    set_task(2.0,"hudmess_show",0)

    client_cmd(0,"stopsound")

    }

    }

    public hudmess_show()

    {

    set_hudmessage(255, 0, 0, 0.11, 0.23, 0, 6.0, 12.0)

    show_hudmessage(0, "Koniec rozgrzewki! Zyczymy milej gry")

    }

    public plugin_precache() precache_sound(muzyka)

    Cytat

    rr_karabin 1/0 - 0 - tylko DEAGL, 1 - karabin,

    rr_restart 60 - długość rozgrzewki.

    Nutkę wgraj do sound/misc/rozgrzewka/ i zmień sobie jej nazwę na samej górze pluginu.

    http://www.speedyshare.com/xja5F/Rozgrzewka-na-DEAGLa-i-karabiny.rar o to link do pluginu :D

    Pozdrawiam Expert.cfg

    Link to comment
    Share on other sites

    • 3 months later...
    Guest
    This topic is now closed to further replies.
     Share

    ×
    ×
    • Create New...
    You are viewing the forum as guest.
    You do not have access to some content and features!