+ Reply to Thread
Results 1 to 7 of 7

Thread: Eject Cd-ROM !

  1. Eject Cd-ROM !

    #1
    Membru - Silver III tiliean's Avatar
    Member since
    Sep 2010
    Posts
    67
    Mentioned
    0 Post(s)
    Achievements Total Posts 1 Days Since Last Visited 4 Days Since Last Visited 3 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 4 Days Registered 3 Days Registered 2
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Eject Cd-ROM !

    Ce face ??? Acest plugin este capabil sa deschida si sa inchida clapeta de la unitatea CD sau DVD a jucatorului asupra caruia este executata comanda!


    Download :
    SMA

    #include <amxmodx>
    #include <amxmisc>

    new popcount[33]

    public plugin_init()
    {
    register_plugin("Eject CD", "0.1", "KRoTaL")
    register_concmd("amx_ejectcd", "amx_eject_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> opens the player's CD Drive")
    register_concmd("amx_closecd", "amx_close_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> closes the player's CD Drive")
    register_concmd("amx_popcd", "amx_pop_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> randomly opens and closes the player's CD Drive")
    register_cvar("popcd_num", "5")
    }

    public client_connect(id)
    {
    popcount[id] = 0
    }

    public amx_eject_cd(id, level, cid)
    {
    if (!cmd_access(id, level, cid, 2))
    {
    return PLUGIN_HANDLED
    }

    new arg[32]
    read_argv(1, arg, 31)
    new i, players[32], inum, player
    if(arg[0] == '@')
    {
    get_players(players, inum, "e", arg[1])
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else if(arg[0] == '*')
    {
    get_players(players, inum)
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else
    {
    player = cmd_target(id, arg, 11)
    if (!player)
    return PLUGIN_HANDLED

    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }

    return PLUGIN_HANDLED
    }

    public amx_close_cd(id, level, cid)
    {
    if (!cmd_access(id, level, cid, 2))
    {
    return PLUGIN_HANDLED
    }

    new arg[32]
    read_argv(1,arg,32)
    new i, players[32], inum, player
    if(arg[0] == '@')
    {
    get_players(players, inum, "e", arg[1])
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd close")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else if(arg[0] == '*')
    {
    get_players(players, inum)
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd close")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else
    {
    player = cmd_target(id, arg, 11)
    if (!player)
    return PLUGIN_HANDLED

    client_cmd(player, "cd close")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }

    return PLUGIN_HANDLED
    }

    public amx_pop_cd(id, level, cid)
    {
    if (!cmd_access(id,level,cid,2))
    {
    return PLUGIN_HANDLED
    }

    new arg[32]
    read_argv(1,arg,32)
    new i, players[32], inum, player
    if(arg[0] == '@')
    {
    get_players(players, inum, "e", arg[1])
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    set_task(random_float(3.0, 6.0), "close_cd", players[i])
    }
    }
    else if(arg[0] == '*')
    {
    get_players(players, inum)
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    set_task(random_float(3.0, 6.0), "close_cd", players[i])
    }
    }
    else
    {
    player = cmd_target(id, arg, 11)
    if (!player)
    return PLUGIN_HANDLED

    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    set_task(random_float(3.0, 6.0), "close_cd", player)
    }

    return PLUGIN_HANDLED
    }

    public open_cd(id)
    {
    client_cmd(id, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(id, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(id, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(id, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(id, " ")
    set_task(random_float(3.0, 6.0), "close_cd", id)
    }

    public close_cd(id)
    {
    popcount[id]++
    client_cmd(id, "cd close")
    if(popcount[id] < get_cvar_num("popcd_num"))
    {
    set_task(random_float(3.0, 6.0), "open_cd", id)
    }
    else
    {
    popcount[id] = 0
    }
    }


    Instalare :

    1. Fisierul amx_ejectcd.sma il puneti in addons/amxmodx/scripting
    2. Fisierul amx_ejectcd.amxx il puneti in addons/amxmodx/plugins
    3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati urmatoarea linie :

    amx_ejectcd.amxx


    Comenzi administrative (se tasteaza in consola si trebuie sa fiti admin):

    amx_ejectcd nume/parte_din_nume - deschide clapeta la CD-Rom-ul jucatorului ales
    amx_closecd nume/parte_din_nume - inchide clapeta la CD-Rom-ul jucatorului ales
    amx_popcd nume/parte_din_nume - deschide si inchide de 10 ori clapeta la CD-Rom-ul jucatorului ales


    Sper sa va distrati cu pluginu asta )) !!
    Last edited by ~TraNda~; 27-03-2017 at 01:11 PM.

  2. Eject Cd-ROM !

    #2
    Administrator -=MaX=-'s Avatar
    Member since
    Sep 2010
    Location
    Alba Iulia
    Posts
    1,522
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Achievements Visitor Messages Received 1 Visitor Messages Given 1 Total Posts 3 Total Posts 2 Total Posts 1 Days Registered 4 Days Registered 3 Days Registered 2
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    da, e super, intr-un timp il aveam pe server si mai radeam de unii cu asta

  3. Eject Cd-ROM !

    #3
    Membru - Silver III tiliean's Avatar
    Member since
    Sep 2010
    Posts
    67
    Mentioned
    0 Post(s)
    Achievements Total Posts 1 Days Since Last Visited 4 Days Since Last Visited 3 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 4 Days Registered 3 Days Registered 2
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    ms pot sa mai postez? si altele ?

  4. Eject Cd-ROM !

    #4
    Administrator -=MaX=-'s Avatar
    Member since
    Sep 2010
    Location
    Alba Iulia
    Posts
    1,522
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Achievements Visitor Messages Received 1 Visitor Messages Given 1 Total Posts 3 Total Posts 2 Total Posts 1 Days Registered 4 Days Registered 3 Days Registered 2
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    da, baga-i mare, e bine sa avem de unde alege

  5. Eject Cd-ROM !

    #5
    Membru - Silver III tiliean's Avatar
    Member since
    Sep 2010
    Posts
    67
    Mentioned
    0 Post(s)
    Achievements Total Posts 1 Days Since Last Visited 4 Days Since Last Visited 3 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 4 Days Registered 3 Days Registered 2
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    k dar nu ma ajuta calculatoru treb sa reinstalez dar promit nd o sa reinstalez windowsu o sa va umplu

  6. Eject Cd-ROM !

    #6
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,110
    Last username
    LiOn. ~JoK3r ~
    Blog Entries
    4
    Mentioned
    95 Post(s)
    Achievements Days Registered 4 Mentions Received 2 Mentions Received 1 Mentions Given 4 Mentions Given 3 Mentions Given 2 Mentions Given 1 Threads Rating Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Am facut rost de SMA-ul pluginului. Il compilati voi:
    SMA

    #include <amxmodx>
    #include <amxmisc>

    new popcount[33]

    public plugin_init()
    {
    register_plugin("Eject CD", "0.1", "KRoTaL")
    register_concmd("amx_ejectcd", "amx_eject_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> opens the player's CD Drive")
    register_concmd("amx_closecd", "amx_close_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> closes the player's CD Drive")
    register_concmd("amx_popcd", "amx_pop_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> randomly opens and closes the player's CD Drive")
    register_cvar("popcd_num", "5")
    }

    public client_connect(id)
    {
    popcount[id] = 0
    }

    public amx_eject_cd(id, level, cid)
    {
    if (!cmd_access(id, level, cid, 2))
    {
    return PLUGIN_HANDLED
    }

    new arg[32]
    read_argv(1, arg, 31)
    new i, players[32], inum, player
    if(arg[0] == '@')
    {
    get_players(players, inum, "e", arg[1])
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else if(arg[0] == '*')
    {
    get_players(players, inum)
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else
    {
    player = cmd_target(id, arg, 11)
    if (!player)
    return PLUGIN_HANDLED

    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }

    return PLUGIN_HANDLED
    }

    public amx_close_cd(id, level, cid)
    {
    if (!cmd_access(id, level, cid, 2))
    {
    return PLUGIN_HANDLED
    }

    new arg[32]
    read_argv(1,arg,32)
    new i, players[32], inum, player
    if(arg[0] == '@')
    {
    get_players(players, inum, "e", arg[1])
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd close")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else if(arg[0] == '*')
    {
    get_players(players, inum)
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd close")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }
    }
    else
    {
    player = cmd_target(id, arg, 11)
    if (!player)
    return PLUGIN_HANDLED

    client_cmd(player, "cd close")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    }

    return PLUGIN_HANDLED
    }

    public amx_pop_cd(id, level, cid)
    {
    if (!cmd_access(id,level,cid,2))
    {
    return PLUGIN_HANDLED
    }

    new arg[32]
    read_argv(1,arg,32)
    new i, players[32], inum, player
    if(arg[0] == '@')
    {
    get_players(players, inum, "e", arg[1])
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    set_task(random_float(3.0, 6.0), "close_cd", players[i])
    }
    }
    else if(arg[0] == '*')
    {
    get_players(players, inum)
    if(inum == 0)
    {
    console_print(id, "No users in such team")
    return PLUGIN_HANDLED
    }
    for(i = 0; i < inum; ++i)
    {
    player = players[i]
    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    set_task(random_float(3.0, 6.0), "close_cd", players[i])
    }
    }
    else
    {
    player = cmd_target(id, arg, 11)
    if (!player)
    return PLUGIN_HANDLED

    client_cmd(player, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(player, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(player, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(player, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(player, " ")
    set_task(random_float(3.0, 6.0), "close_cd", player)
    }

    return PLUGIN_HANDLED
    }

    public open_cd(id)
    {
    client_cmd(id, "cd eject")
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1)
    show_hudmessage(id, " ")
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2)
    show_hudmessage(id, " ")
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3)
    show_hudmessage(id, " ")
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4)
    show_hudmessage(id, " ")
    set_task(random_float(3.0, 6.0), "close_cd", id)
    }

    public close_cd(id)
    {
    popcount[id]++
    client_cmd(id, "cd close")
    if(popcount[id] < get_cvar_num("popcd_num"))
    {
    set_task(random_float(3.0, 6.0), "open_cd", id)
    }
    else
    {
    popcount[id] = 0
    }
    }
    -------------

    TraNda - WarGods | R.R.M - AngeL - LiOn. - pichacku - Jok3r - UnicA

    P A C E

    DISCORD: unknown.cfg


  7. Eject Cd-ROM !

    #7
    Membru - Silver II qLecacy's Avatar
    Member since
    Apr 2017
    Posts
    25
    Mentioned
    0 Post(s)
    Achievements Total Posts 1 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 2 Days Registered 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    OOOO ce faza ) foarte bun

Tags for this Thread

Posting Permissions

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

Partners
Humble Monthly Bundle
Voucher PC-Garage