Results 1 to 3 of 3

Thread: Treba mi plugin

  1. #1
    Tech Support
    Join Date
    Feb 2013
    Age
    32
    Posts
    189
    Karma
    14

    Treba mi plugin

    Jel iko ima u bazi u kompu plugin za dm server /spec (odlazi admin u spec) ,/bacl (vraca se u igru i spawna se)
    Preko amx super ne mogu to da sredim pokusao sam svaku varijantu ,na netu sam nalazio spec_switch.amxx ali on ne radi.. Imam problem stvarno veliki tipa kad hocu spec moram kill u konzolu da bi otisao u spec a kada hocu nazad moram reonnect.
    Neka ideja neko resenje ...

  2. #2
    Vodnik
    Join Date
    Jan 2019
    Location
    Cuprija
    Age
    25
    Posts
    10
    Karma
    4

    Re: Treba mi plugin

    Quote Originally Posted by Negative|ol0$ View Post
    Jel iko ima u bazi u kompu plugin za dm server /spec (odlazi admin u spec) ,/bacl (vraca se u igru i spawna se)
    Preko amx super ne mogu to da sredim pokusao sam svaku varijantu ,na netu sam nalazio spec_switch.amxx ali on ne radi.. Imam problem stvarno veliki tipa kad hocu spec moram kill u konzolu da bi otisao u spec a kada hocu nazad moram reonnect.
    Neka ideja neko resenje ...

    Probaj ovaj spec switch:

    #include <amxmodx>
    #include <cstrike>
    #include <fun>

    #define PLUGIN "Spec Switch"
    #define VERSION "0.0.5"
    #define AUTHOR "many"

    new CsTeams:zTeam[33]
    new zDeath[33]

    public plugin_init()
    {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /spec", "spec")
    register_clcmd("say_team /spec", "spec")
    register_clcmd("say /back", "back")
    register_clcmd("say_team /back", "back")
    }

    public client_putinserver(id)
    set_task(20.0,"rule",id)


    public spec(id)
    {
    zDeath[id] = cs_get_user_deaths(id)
    if(cs_get_user_team(id) == CS_TEAM_SPECTATOR) return 1;
    else
    zTeam[id] = cs_get_user_team(id)
    cs_set_user_team(id, CS_TEAM_SPECTATOR)
    user_kill(id, 1)
    return 0;
    }

    public back(id)
    {
    if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
    cs_set_user_team(id, zTeam[id])
    cs_set_user_deaths(id, zDeath[id])
    set_task(0.2,"respawn",id)
    set_task(0.4,"respawn",id)
    }

    public rule(id)
    {
    client_print(id,print_chat,"Type /spec if you want to go Spectator")
    client_print(id,print_chat,"Type /back to return from Spectator")
    }

    public respawn(id)
    {
    cs_user_spawn(id)
    if (cs_get_user_team(id) == CS_TEAM_T)
    {
    give_item(id,"weapon_knife")
    give_item(id,"weapon_glock18")
    give_item(id,"ammo_9mm")
    }
    if (cs_get_user_team(id) == CS_TEAM_CT)
    {
    give_item(id,"weapon_knife")
    give_item(id,"weapon_usp")
    give_item(id,"ammo_45acp")
    give_item(id,"ammo_45acp")
    }
    return 0;
    }

  3. #3
    Tech Support
    Join Date
    Feb 2013
    Age
    32
    Posts
    189
    Karma
    14

    Re: Treba mi plugin

    Inace resio sam probelm takos to sam iskljucio amx super...
    Ne znam zasto ali amx super ovaj poslednji sto je napravljen ima dosta problema naime pravi dosta probelma ukombinaciji sa drugim plughinima nemam pojma zasto inace hvala.

Posting Permissions

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