Serwery wiaderko.com Zwiń / Rozwiń kategorię

HashJama [TP] 193.33.176.148:27015 | tp.wiaderko.com status serwera HashJama [TP] połącz

HashJama CS:GO [DM] 193.33.176.53:27015 | dm.wiaderko.com status serwera HashJama CS:GO [DM] połącz

HashJama CS:GO [FFA] 193.33.176.15:27015 | ffa.wiaderko.com status serwera HashJama CS:GO FFA [FFA] połącz

HashJama [TeamSpeak 3] 62.210.99.220:9987 | ts.wiaderko.com status serwera HashJama [TP ELITE] 62.210.99.220:27015 połącz

SPONSOR:
pukawka.pl

Nabór na JUNIOR ADMINA forum - Więcej informacji > Klik <
Pokaż wyniki od 1 do 3 z 3
  1. #1
    Lamka Awatar BlooDiik
    Dołączył
    Apr 2013
    Wiek
    21
    Posty
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Dont camp near bomb by naven (Bug)

    Hi, i need repair this plugin please. When CT is the bomb and Terrorist take bomb so CT have always black screen.
    You can repair when CT is the bomb and Terrorist take bomb so disappears the black screen? Please

    Kod php:
    #include <amxmodx>
    #inclmisc>
    #include <fakemeta>
    #include <cstrike>
    #include <fakemeta_util>
    #include <engine>

    #define PLUGIN "Dont camp near bomb"
    #define VERSION "1.1"
    #define AUTHOR "naven"

    #define FADE_IN    (1<<0)
    #define FADE_OUT    (1<<1)
    #define FADE_HOLD (1<<2)
    #define FADE_LENGTH_PERM (1<<0)

    new g_msgFade;
    //new bomb_dropper;

    new CvarDistance;

    public 
    plugin_init() {
        
    register_plugin(PLUGINVERSIONAUTHOR)
        
    register_forward(FM_PlayerPreThink"PlayerPreThink");
        
    g_msgFade get_user_msgid("ScreenFade");
        
    //register_logevent("logevent_function_p", 3, "2=Dropped_The_Bomb")
        
    CvarDistance register_cvar("gb_distance""300.0")
    }
    public 
    PlayerPreThink(id)
    {
        if(
    cs_get_user_team(id) & CS_TEAM_CT)
        {
            new 
    FloatfOrigin[3], FloatfPlayerOrigin[3]
            new 
    weapboxbomb fm_find_ent_by_class(-1"weapon_c4")
            if (
    bomb && (weapbox pev(bombpev_owner)) > get_maxplayers()) 
            {
                
    //dllfunc(DLLFunc_Think, weapbox) // will remove weaponbox + weapon_c4 entity pair
                
    entity_get_vector(weapboxEV_VEC_originfOrigin)
                
    entity_get_vector(idEV_VEC_originfPlayerOrigin)
                
    /*set_hudmessage(255, 0, 0, 0.62, 0.38, 0, 6.0, 12.0,_, _, 3)
                show_hudmessage(id, "bomb x = %f y = %f z = %f",fOrigin[0],fOrigin[1],fOrigin[2])
                set_hudmessage(255, 255, 255, 0.73, 0.71, 0, 6.0, 12.0,_, _,2)
                show_hudmessage(id, "player x = %f y = %f z = %f",fPlayerOrigin[0],fPlayerOrigin[1],fPlayerOrigin[2])
                */

                
    if(get_distance_f(fOriginfPlayerOrigin) < get_pcvar_float(CvarDistance))
                {
                    
    //if(bomb_dropper == id)
                    //{
                        
    new FloatpunishPercentage 1.0;
                        new 
    duration = (punishPercentage == 1.0) ? FADE_LENGTH_PERM 1<<12;
                        new 
    holdTime = (punishPercentage == 1.0) ? FADE_LENGTH_PERM 1<<8;
                        new 
    fadeType = (punishPercentage == 1.0) ? FADE_HOLD FADE_IN;
                        new 
    blindness 127 floatround(128.0 punishPercentage);
        
                        
    message_begin(MSG_ONEg_msgFade, {0,0,0}, id); // use the magic #1 for "one client" 
                        
    write_short(duration); // fade lasts this long duration 
                        
    write_short(holdTime); // fade lasts this long hold time 
                        
    write_short(fadeType); // fade type 
                        
    write_byte(0); // fade red 
                        
    write_byte(0); // fade green 
                        
    write_byte(0); // fade blue  
                        
    write_byte(blindness); // fade alpha  
                        
    message_end(); 
                        
                        
    set_hudmessage(025500.430.6700.112.0,__4)
                        
    show_hudmessage(id"Go back and pick up the bomb!")
                    
    //}
                
    }
                else
                {
                    
    punish_blind_stop(id)
                }
            }
        }
    }
    /*public logevent_function_p()
    {
        new id = get_loguser_index()
        bomb_dropper = id;
        new name[32]
        get_user_name(id, name, 31)
        //client_print(0, print_chat, "%s dropped bomb", name)
    }
    stock get_loguser_index() {
            new loguser[80], name[32]
            read_logargv(0, loguser, 79)
            parse_loguser(loguser, name, 31)
     
            return get_user_index(name)
    }*/
    public punish_blind_stop(id)
    {
        
    //if (g_playerFlags[id] & PLAYER_BLIND) g_playerFlags[id]-= PLAYER_BLIND;

        
    message_begin(MSG_ONEg_msgFade, {0,0,0}, id); // use the magic #1 for "one client"  
        
    write_short(0); // fade lasts this long duration  
        
    write_short(1<<8); // fade lasts this long hold time  
        
    write_short(FADE_OUT); // fade type
        
    write_byte(0); // fade red  
        
    write_byte(0); // fade green  
        
    write_byte(0); // fade blue     
        
    write_byte(255); // fade alpha     
        
    message_end();    

    I'm learning the language PAWN

  2. #2
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    25
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Dont camp near bomb by naven (Bug)

    I don't understand. Is this plugin from official release thread or where did you get it?
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  3. #3
    Lamka Awatar BlooDiik
    Dołączył
    Apr 2013
    Wiek
    21
    Posty
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Re: Dont camp near bomb by naven (Bug)

    I'm learning the language PAWN

Podobne wątki

  1. Shop Dont Drop
    By Kazik Na Żywo in forum Gry dla dziewczyn online
    Odpowiedzi: 0
    Ostatni post / autor: 23-11-2009, 16:11
  2. Odpowiedzi: 1
    Ostatni post / autor: 04-09-2009, 20:58
  3. Odpowiedzi: 1
    Ostatni post / autor: 04-09-2009, 20:57
  4. IMPULS cAmP :: CS:S :: FFA :: TR-100
    By PoL@RoS in forum Archiwum forum
    Odpowiedzi: 0
    Ostatni post / autor: 03-01-2009, 23:46
  5. Camp Meter !
    By Freater in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 3
    Ostatni post / autor: 11-05-2008, 20:20

Odwiedzający poszukiwali:

Nikt jeszcze nie odwiedził tej strony poprzez wyszukiwarki

Uprawnienia umieszczania postów

  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •