Kullanıcı Tag Listesi

7 sonuçtan 1 ile 7 arası

Konu: Hook

  1. #1
    cavus er
    Üyelik tarihi
    Feb 2012
    Mesajlar
    296
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    9

    Standart Hook

    PHP- Kodu:
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>

    #define PLUGIN "ProKreedz Hook"
    #define VERSION "v2.3"
    #define AUTHOR "vato loco [GE-S] & p4ddY"

    #define KZ_ACCESS  ADMIN_KICK
    #define RANDOM_NUM random_num(0,255)
    #define RED        255
    #define GREEN      99
    #define    BLUE       71

    enum color {normal 1greenteam}
    enum {HOOK_OFFHOOK_RELEASEHOOK_ON}

    new 
    is_plr_connected[33]
    new 
    bool:g_bCanUseHook[33]
    new 
    g_bIsHooked[33]
    new 
    g_iHookOrigin[33][3]
    new 
    g_bPlayerIsAdmin[33]
    new 
    g_SpriteBeam
    new g_SpriteLaser
    new g_SayText
    new g_iMaxPlayers
    new g_kz_tag

    public plugin_init() 
    {
        
    register_plugin(PLUGINVERSIONAUTHOR)
        
        
    register_forward(FM_Think"fw_ThinkEnt")
        
    register_clcmd("+hook""HookOn"KZ_ACCESS)
        
    register_clcmd("-hook""HookOff"KZ_ACCESS)
        
    register_clcmd("kz_hook""cmd_give_hook"KZ_ACCESS ,"<name|#userid|steamid|@ALL> <on/off>")
         new 
    map[32];
        
    get_mapname(map,31);
        if((
    containi(map,"jail") == -1) && (containi(map,"jb_") == -1)) return PLUGIN_CONTINUE 
        register_dictionary
    ("prokreedz_v2.3.txt")
        
    g_kz_tag register_cvar("kz_tag""[ProKreedz]")
        
        new 
    iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString "info_target"))
        
    set_pev(iEntpev_classname"hook_think")
        
    set_pev(iEntpev_nextthinkget_gametime() + 0.1)
        
        
    g_SayText get_user_msgid("SayText")
        
    g_iMaxPlayers get_maxplayers()
    }

    public 
    plugin_precache() 
    {
        
    g_SpriteBeam engfunc(EngFunc_PrecacheModel"sprites/lgtning.spr")
        
    g_SpriteLaser engfunc(EngFunc_PrecacheModel,"sprites/zbeam4.spr")
    }

    public 
    client_putinserver(id
    {
        
    is_plr_connected[id] = true
        g_bIsHooked
    [id] = HOOK_OFF
        
    if(get_user_flags(id) & KZ_ACCESS
            
    g_bPlayerIsAdmin[id] = true
    }

    public 
    client_disconnect(id
    {
        
    is_plr_connected[id] = false
        g_bIsHooked
    [id] = HOOK_OFF
        
    if(g_bPlayerIsAdmin[id]) 
            
    g_bPlayerIsAdmin[id] = false
    }

    public 
    kz_prize_hook(idstatus[])
    {
        switch(
    status[0])
        {
            case 
    '0'g_bCanUseHook[id] = false
                
            
    case '1'
            {
                
    g_bCanUseHook[id] = true
                kz_colorchat
    (idgreen"%L"id"PKU_PRIZE_HOOK")
            }
        }
    }

    public 
    cmd_give_hook(id,level,cid
    {
        if(!
    cmd_access(id,level,cid,3))
            return 
    PLUGIN_HANDLED
        
        
    new name[32]
        
    get_user_name(id,name,31)
        
        new 
    szarg1[32], szarg2[8], bool:mode
        read_argv
    (1,szarg1,31)
        
    read_argv(2,szarg2,7)
        if(
    equal(szarg2,"on"))
            
    mode true
        
        
    if(equal(szarg1,"@ALL")) 
        {
            for(new 
    1<= g_iMaxPlayersi++) 
            {
                if(
    is_plr_connected[i] && is_user_alive(i)) 
                {
                    
    g_bCanUseHook[i] = mode
                    
    if(mode
                        
    kz_colorchat(igreen"%L"i"PKU_HOOK_AT_ALL"name)
                    else 
                        
    kz_colorchat(igreen"%L"i"PKU_HOOK_TAKE_ALL"name)
                }
            }
        }
        else 
        {
            new 
    pid cmd_target(id,szarg1,2)
            if(
    pid 0
            {
                
    g_bCanUseHook[pid] = mode
                
    if(mode
                    
    kz_colorchat(pidgreen"%L"pid"PKU_HOOK_AT_TARGET"name)
                else 
                    
    kz_colorchat(pidgreen"%L"pid"PKU_HOOK_TAKE_TARGET"name)
            }
        }
        return 
    PLUGIN_HANDLED
    }

    public 
    HookOn(id)  
    {
        if(!
    g_bCanUseHook[id] && !g_bPlayerIsAdmin[id])
            return 
    PLUGIN_HANDLED
        
        
    if(is_plr_connected[id] && is_user_alive(id))
        {
            
    get_user_origin(idg_iHookOrigin[id], 3)
            
            if(
    callfunc_begin("DetectCheat","ProKreedz_v2.3.amxx") == 1
            {
                
    callfunc_push_int(id)
                
    callfunc_push_str("Hook")
                
    callfunc_end()
            }
            
    g_bIsHooked[id] = HOOK_ON
        
    }
        return 
    PLUGIN_HANDLED
    }

    public 
    HookOff(id
    {
        
    g_bIsHooked[id] = HOOK_RELEASE
        
    return PLUGIN_HANDLED
    }

    public 
    fw_ThinkEnt(iEnt)
    {
        if (
    pev_valid(iEnt)) 
        { 
            static 
    ClassName[33]
            
    pev(iEntpev_classnameClassName32)
            
            if(
    equal(ClassName"hook_think"))
            {
                
    fw_HookThink()
                
    set_pev(iEntpev_nextthinkget_gametime() + 0.1)
            }
        }
    }

    public 
    fw_HookThink()
    {
        static 
    idorigin[3], Float:velocity[3], distance
        
    for(id id <= g_iMaxPlayers id++) 
        {
            if(
    g_bIsHooked[id] == HOOK_ON)
            {
                
    message_begin(MSG_BROADCASTSVC_TEMPENTITY)
                
    write_byte(1)              // TE_BEAMENTPOINT
                
    write_short(id)              // entid
                
    write_coord(g_iHookOrigin[id][0]) // origin
                
    write_coord(g_iHookOrigin[id][1]) // origin
                
    write_coord(g_iHookOrigin[id][2]) // origin
                
    if(g_bPlayerIsAdmin[id])
                {
                    
    write_short(g_SpriteBeam)      // sprite index
                    
    write_byte(0)              // start frame
                    
    write_byte(0)              // framerate
                    
    write_byte(2)              // life
                    
    write_byte(20)              // width
                    
    write_byte(0)
                    
    write_byte(RANDOM_NUM// r
                    
    write_byte(RANDOM_NUM// g
                    
    write_byte(RANDOM_NUM// b
                
    }
                else 
                {
                    
    write_short(g_SpriteLaser)      // sprite index
                    
    write_byte(0)              // start frame
                    
    write_byte(0)              // framerate
                    
    write_byte(2)              // life
                    
    write_byte(10)              // width
                    
    write_byte(0)
                    
    write_byte(RED)           // r
                    
    write_byte(GREEN)      // g
                    
    write_byte(BLUE)       // b
                
    }
                
    write_byte(150)                   // brightness
                
    write_byte(0)                   // speed
                
    message_end()
                
                
    get_user_origin(idorigin)
                
    distance get_distance(g_iHookOrigin[id], origin)
                if(
    distance 25)  
                { 
                    
    velocity[0] = (g_iHookOrigin[id][0] - origin[0]) * (2.0 350 distance)
                    
    velocity[1] = (g_iHookOrigin[id][1] - origin[1]) * (2.0 350 distance)
                    
    velocity[2] = (g_iHookOrigin[id][2] - origin[2]) * (2.0 350 distance)
                    
    set_pev(idpev_velocityvelocity)
                }
            }
            else if(
    g_bIsHooked[id] == HOOK_RELEASE)
            {
                
    g_bIsHooked[id] = HOOK_OFF
            
    }
        }
    }

    kz_colorchat(idcolor:type, const msg[], {Float,Sql,Result,_}:...) {
        
        static 
    message[256], pkmsg[180], changed[8], argscount,j
        argscount 
    numargs()
        
        switch(
    type
        {
            case 
    normalmessage[0] = 0x01
                
            
    case greenmessage[0] = 0x04
                
            
    default: message[0] = 0x03
            
        
    }
        new 
    pktag[32]
        
    get_pcvar_string(g_kz_tagpktag31)
        
        if(
    id)
        {
            if(
    is_plr_connected[id])
            {
                
    vformat(pkmsg179msg4)
                
    formatex(message[1], 255"%s %s"pktagpkmsg)
                
    message[192] = '^0'
                
                
    replace_all(message191"!g""^x04")
                
    replace_all(message191"!n""^x01")
                
    replace_all(message191"!t""^x03")
                
    kz_print_msg(idmessage)
            }
        } 
        else 
        {
            for(new 
    1<= g_iMaxPlayersi++)
            {
                if(
    is_plr_connected[i])
                {
                    new 
    changedcount 0
                    
                    
    for(2argscountj++)
                    {
                        if(
    getarg(j) == LANG_PLAYER)
                        {
                            
    setarg(j0i);
                            
    changed[changedcount++] = j;
                        }
                    }
                    
    vformat(pkmsg179msg4)
                    
    formatex(message[1], 255"%s %s"pktagpkmsg)
                    
    message[192] = '^0'
                    
                    
    replace_all(message191"!g""^x04")
                    
    replace_all(message191"!n""^x01")
                    
    replace_all(message191"!t""^x03")
                    
    kz_print_msg(imessage)
                    
                    for(
    0changedcountj++)
                    {
                        
    setarg(changed[j], 0LANG_PLAYER)
                    }
                }
            }
        }
    }

    stock kz_print_msg(id, const msg[])
    {
        
    message_begin(MSG_ONE_UNRELIABLEg_SayText_id)
        
    write_byte(id)        
        
    write_string(msg)
        
    message_end()


    Hook atınca ses çıkarmasını istiyorum , normal hook sesi olabilir.

  2. #2
    onbasi banned
    Üyelik tarihi
    Jan 2012
    Mesajlar
    122
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    0

  3. #3
    cavus er
    Üyelik tarihi
    Feb 2012
    Mesajlar
    296
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    9

    Standart Cevap: Hook

    Kardeşim ben benim verdiğim hooka ses istiyorum.

  4. #4
    teğmen emektar DeaTReX - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    Feb 2012
    Yer
    İstanbul
    Mesajlar
    1.089
    Bahsedildi
    10 Mesaj
    Etiketlenmiş
    2 Konu
    Tecrübe Puanı
    10

    Standart Cevap: Hook

    PHP- Kodu:
    #include <amxmodx> 
    #include <amxmisc> 
    #include <fakemeta> 

    #define PLUGIN "ProKreedz Hook" 
    #define VERSION "v2.3" 
    #define AUTHOR "vato loco [GE-S] & p4ddY" 

    #define KZ_ACCESS  ADMIN_KICK 
    #define RANDOM_NUM random_num(0,255) 
    #define RED        255 
    #define GREEN      99 
    #define    BLUE       71 

    enum color {normal 1greenteam
    enum {HOOK_OFFHOOK_RELEASEHOOK_ON

    new 
    is_plr_connected[33
    new 
    bool:g_bCanUseHook[33
    new 
    g_bIsHooked[33
    new 
    g_iHookOrigin[33][3
    new 
    g_bPlayerIsAdmin[33
    new 
    g_SpriteBeam 
    new g_SpriteLaser 
    new g_SayText 
    new g_iMaxPlayers 
    new g_kz_tag 

    public plugin_init()  

        
    register_plugin(PLUGINVERSIONAUTHOR
         
        
    register_forward(FM_Think"fw_ThinkEnt"
        
    register_clcmd("+hook""HookOn"KZ_ACCESS
        
    register_clcmd("-hook""HookOff"KZ_ACCESS
        
    register_clcmd("kz_hook""cmd_give_hook"KZ_ACCESS ,"<name|#userid|steamid|@ALL> <on/off>"
         new 
    map[32]; 
        
    get_mapname(map,31); 
        if((
    containi(map,"jail") == -1) && (containi(map,"jb_") == -1)) return PLUGIN_CONTINUE  
        register_dictionary
    ("prokreedz_v2.3.txt"
        
    g_kz_tag register_cvar("kz_tag""[ProKreedz]"
         
        new 
    iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString "info_target")) 
        
    set_pev(iEntpev_classname"hook_think"
        
    set_pev(iEntpev_nextthinkget_gametime() + 0.1
         
        
    g_SayText get_user_msgid("SayText"
        
    g_iMaxPlayers get_maxplayers() 


    public 
    plugin_precache()  

        
    g_SpriteBeam engfunc(EngFunc_PrecacheModel"sprites/lgtning.spr"
        
    g_SpriteLaser engfunc(EngFunc_PrecacheModel,"sprites/zbeam4.spr"
        
    precache_sound("weapons/xbow_hit2.wav")
        
    precache_sound("weapons/xbow_fire1.wav")


    public 
    client_putinserver(id)  

        
    is_plr_connected[id] = true 
        g_bIsHooked
    [id] = HOOK_OFF 
        
    if(get_user_flags(id) & KZ_ACCESS)  
            
    g_bPlayerIsAdmin[id] = true 


    public 
    client_disconnect(id)  

        
    is_plr_connected[id] = false 
        g_bIsHooked
    [id] = HOOK_OFF 
        
    if(g_bPlayerIsAdmin[id])  
            
    g_bPlayerIsAdmin[id] = false 


    public 
    kz_prize_hook(idstatus[]) 

        switch(
    status[0]) 
        { 
            case 
    '0'g_bCanUseHook[id] = false 
                 
            
    case '1':  
            { 
                
    g_bCanUseHook[id] = true 
        emit_sound
    (id,CHAN_VOICE,"weapons/xbow_hit2.wav"1.0ATTN_NORM0PITCH_NORM)
                
    kz_colorchat(idgreen"%L"id"PKU_PRIZE_HOOK"
            } 
        } 


    public 
    cmd_give_hook(id,level,cid)  

        if(!
    cmd_access(id,level,cid,3)) 
            return 
    PLUGIN_HANDLED 
         
        
    new name[32
        
    get_user_name(id,name,31
         
        new 
    szarg1[32], szarg2[8], bool:mode 
        read_argv
    (1,szarg1,31
        
    read_argv(2,szarg2,7
        if(
    equal(szarg2,"on")) 
            
    mode true 
         
        
    if(equal(szarg1,"@ALL"))  
        { 
            for(new 
    1<= g_iMaxPlayersi++)  
            { 
                if(
    is_plr_connected[i] && is_user_alive(i))  
                { 
                    
    g_bCanUseHook[i] = mode 
                    
    if(mode)  
                        
    kz_colorchat(igreen"%L"i"PKU_HOOK_AT_ALL"name
                    else  
                        
    kz_colorchat(igreen"%L"i"PKU_HOOK_TAKE_ALL"name
                } 
            } 
        } 
        else  
        { 
            new 
    pid cmd_target(id,szarg1,2
            if(
    pid 0)  
            { 
                
    g_bCanUseHook[pid] = mode 
                
    if(mode)  
                    
    kz_colorchat(pidgreen"%L"pid"PKU_HOOK_AT_TARGET"name
                else  
                    
    kz_colorchat(pidgreen"%L"pid"PKU_HOOK_TAKE_TARGET"name
            } 
        } 
        return 
    PLUGIN_HANDLED 


    public 
    HookOn(id)   

        if(!
    g_bCanUseHook[id] && !g_bPlayerIsAdmin[id]) 
            return 
    PLUGIN_HANDLED 
         
        
    if(is_plr_connected[id] && is_user_alive(id)) 
        { 
            
    get_user_origin(idg_iHookOrigin[id], 3
             
            if(
    callfunc_begin("DetectCheat","ProKreedz_v2.3.amxx") == 1)  
            { 
                
    callfunc_push_int(id
                
    callfunc_push_str("Hook"
                
    callfunc_end() 
            } 
            
    g_bIsHooked[id] = HOOK_ON 
        

        return 
    PLUGIN_HANDLED 


    public 
    HookOff(id)  

        
    g_bIsHooked[id] = HOOK_RELEASE 
        
    return PLUGIN_HANDLED 


    public 
    fw_ThinkEnt(iEnt

        if (
    pev_valid(iEnt))  
        {  
            static 
    ClassName[33
            
    pev(iEntpev_classnameClassName32
             
            if(
    equal(ClassName"hook_think")) 
            { 
                
    fw_HookThink() 
                
    set_pev(iEntpev_nextthinkget_gametime() + 0.1
            } 
        } 


    public 
    fw_HookThink() 

        static 
    idorigin[3], Float:velocity[3], distance 
        
    for(id id <= g_iMaxPlayers id++)  
        { 
            if(
    g_bIsHooked[id] == HOOK_ON
            { 
                
    message_begin(MSG_BROADCASTSVC_TEMPENTITY
                
    write_byte(1)              // TE_BEAMENTPOINT 
                
    write_short(id)              // entid 
                
    write_coord(g_iHookOrigin[id][0]) // origin 
                
    write_coord(g_iHookOrigin[id][1]) // origin 
                
    write_coord(g_iHookOrigin[id][2]) // origin 
                
    if(g_bPlayerIsAdmin[id]) 
                { 
                    
    write_short(g_SpriteBeam)      // sprite index 
                    
    write_byte(0)              // start frame 
                    
    write_byte(0)              // framerate 
                    
    write_byte(2)              // life 
                    
    write_byte(20)              // width 
                    
    write_byte(0
                    
    write_byte(RANDOM_NUM// r 
                    
    write_byte(RANDOM_NUM// g 
                    
    write_byte(RANDOM_NUM// b 
                

                else  
                { 
                    
    write_short(g_SpriteLaser)      // sprite index 
                    
    write_byte(0)              // start frame 
                    
    write_byte(0)              // framerate 
                    
    write_byte(2)              // life 
                    
    write_byte(10)              // width 
                    
    write_byte(0
                    
    write_byte(RED)           // r 
                    
    write_byte(GREEN)      // g 
                    
    write_byte(BLUE)       // b 
                

                
    write_byte(150)                   // brightness 
                
    write_byte(0)                   // speed 
                
    message_end() 
                 
                
    get_user_origin(idorigin
                
    distance get_distance(g_iHookOrigin[id], origin
                if(
    distance 25)   
                {  
                    
    velocity[0] = (g_iHookOrigin[id][0] - origin[0]) * (2.0 350 distance
                    
    velocity[1] = (g_iHookOrigin[id][1] - origin[1]) * (2.0 350 distance
                    
    velocity[2] = (g_iHookOrigin[id][2] - origin[2]) * (2.0 350 distance
                    
    set_pev(idpev_velocityvelocity
                } 
            } 
            else if(
    g_bIsHooked[id] == HOOK_RELEASE
            { 
                
    g_bIsHooked[id] = HOOK_OFF 
            

        } 


    kz_colorchat(idcolor:type, const msg[], {Float,Sql,Result,_}:...) { 
         
        static 
    message[256], pkmsg[180], changed[8], argscount,
        argscount 
    numargs() 
         
        switch(
    type)  
        { 
            case 
    normalmessage[0] = 0x01 
                 
            
    case greenmessage[0] = 0x04 
                 
            
    default: message[0] = 0x03 
             
        

        new 
    pktag[32
        
    get_pcvar_string(g_kz_tagpktag31
         
        if(
    id
        { 
            if(
    is_plr_connected[id]) 
            { 
                
    vformat(pkmsg179msg4
                
    formatex(message[1], 255"%s %s"pktagpkmsg
                
    message[192] = '^0' 
                 
                
    replace_all(message191"!g""^x04"
                
    replace_all(message191"!n""^x01"
                
    replace_all(message191"!t""^x03"
                
    kz_print_msg(idmessage
            } 
        }  
        else  
        { 
            for(new 
    1<= g_iMaxPlayersi++) 
            { 
                if(
    is_plr_connected[i]) 
                { 
                    new 
    changedcount 
                     
                    
    for(2argscountj++) 
                    { 
                        if(
    getarg(j) == LANG_PLAYER
                        { 
                            
    setarg(j0i); 
                            
    changed[changedcount++] = j
                        } 
                    } 
                    
    vformat(pkmsg179msg4
                    
    formatex(message[1], 255"%s %s"pktagpkmsg
                    
    message[192] = '^0' 
                     
                    
    replace_all(message191"!g""^x04"
                    
    replace_all(message191"!n""^x01"
                    
    replace_all(message191"!t""^x03"
                    
    kz_print_msg(imessage
                     
                    for(
    0changedcountj++) 
                    { 
                        
    setarg(changed[j], 0LANG_PLAYER
                    } 
                } 
            } 
        } 


    stock kz_print_msg(id, const msg[]) 

        
    message_begin(MSG_ONE_UNRELIABLEg_SayText_id
        
    write_byte(id)         
        
    write_string(msg
        
    message_end() 

    Dene Bakıyım
    İletişim ;

    MSN : DeaTReX
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    SKYPE : DeaTReX

    Fakelerim Çıkmaya Başlamış Lütfen
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    & DeaTReX Adreslerinden Başka Hesabım Yoktur Lütfen Onlara Kanmayınız !

    Sunuculara Ve Serverlara Özel Plugin Ve Mod Kodlanır

  5. #5
    Nemesis* coadmin akcaliberkk - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    Jun 2012
    Yer
    İstanbul
    Mesajlar
    2.027
    Bahsedildi
    105 Mesaj
    Etiketlenmiş
    10 Konu
    Tecrübe Puanı
    10

    Standart Cevap: Hook

    PHP- Kodu:
    #include <amxmodx> 
    #include <amxmisc> 
    #include <fakemeta> 

    #define PLUGIN "ProKreedz Hook" 
    #define VERSION "v2.3" 
    #define AUTHOR "vato loco [GE-S] & p4ddY" 

    #define KZ_ACCESS  ADMIN_KICK 
    #define RANDOM_NUM random_num(0,255) 
    #define RED        255 
    #define GREEN      99 
    #define    BLUE       71 

    enum color {normal 1greenteam
    enum {HOOK_OFFHOOK_RELEASEHOOK_ON

    new 
    is_plr_connected[33
    new 
    bool:g_bCanUseHook[33
    new 
    g_bIsHooked[33
    new 
    g_iHookOrigin[33][3
    new 
    g_bPlayerIsAdmin[33
    new 
    g_SpriteBeam 
    new g_SpriteLaser 
    new g_SayText 
    new g_iMaxPlayers 
    new g_kz_tag 

    new const HOOK_SOUND[] = "weapons/xbow_fire1.wav";

    public 
    plugin_init()  

        new 
    map[32]; 
        
    get_mapname(map,31); 
        if((
    containi(map,"jail") == -1) && (containi(map,"jb_") == -1)) return PLUGIN_CONTINUE  
        
        register_plugin
    (PLUGINVERSIONAUTHOR
        
        
    register_forward(FM_Think"fw_ThinkEnt"
        
    register_clcmd("+hook""HookOn"KZ_ACCESS
        
    register_clcmd("-hook""HookOff"KZ_ACCESS
        
    register_clcmd("kz_hook""cmd_give_hook"KZ_ACCESS ,"<name|#userid|steamid|@ALL> <on/off>"
        
        
    register_dictionary("prokreedz_v2.3.txt"
        
        
    g_kz_tag register_cvar("kz_tag""[ProKreedz]"
        
        new 
    iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString "info_target")) 
        
    set_pev(iEntpev_classname"hook_think"
        
    set_pev(iEntpev_nextthinkget_gametime() + 0.1
        
        
    g_SayText get_user_msgid("SayText"
        
    g_iMaxPlayers get_maxplayers() 


    public 
    plugin_precache()  

        
    g_SpriteBeam engfunc(EngFunc_PrecacheModel"sprites/lgtning.spr"
        
    g_SpriteLaser engfunc(EngFunc_PrecacheModel,"sprites/zbeam4.spr"
        
    engfunc(EngFunc_PrecacheSoundHOOK_SOUND)


    public 
    client_putinserver(id)  

        
    is_plr_connected[id] = true 
        g_bIsHooked
    [id] = HOOK_OFF 
        
    if(get_user_flags(id) & KZ_ACCESS)  
            
    g_bPlayerIsAdmin[id] = true 


    public 
    client_disconnect(id)  

        
    is_plr_connected[id] = false 
        g_bIsHooked
    [id] = HOOK_OFF 
        
    if(g_bPlayerIsAdmin[id])  
            
    g_bPlayerIsAdmin[id] = false 


    public 
    kz_prize_hook(idstatus[]) 

        switch(
    status[0]) 
        { 
            case 
    '0'g_bCanUseHook[id] = false 
                
            
    case '1':  
            { 
                
    g_bCanUseHook[id] = true 
                kz_colorchat
    (idgreen"%L"id"PKU_PRIZE_HOOK"
            } 
        } 


    public 
    cmd_give_hook(id,level,cid)  

        if(!
    cmd_access(id,level,cid,3)) 
            return 
    PLUGIN_HANDLED 
        
        
    new name[32
        
    get_user_name(id,name,31
        
        new 
    szarg1[32], szarg2[8], bool:mode 
        read_argv
    (1,szarg1,31
        
    read_argv(2,szarg2,7
        if(
    equal(szarg2,"on")) 
            
    mode true 
        
        
    if(equal(szarg1,"@ALL"))  
        { 
            for(new 
    1<= g_iMaxPlayersi++)  
            { 
                if(
    is_plr_connected[i] && is_user_alive(i))  
                { 
                    
    g_bCanUseHook[i] = mode 
                    
    if(mode)  
                        
    kz_colorchat(igreen"%L"i"PKU_HOOK_AT_ALL"name
                    else  
                        
    kz_colorchat(igreen"%L"i"PKU_HOOK_TAKE_ALL"name
                } 
            } 
        } 
        else  
        { 
            new 
    pid cmd_target(id,szarg1,2
            if(
    pid 0)  
            { 
                
    g_bCanUseHook[pid] = mode 
                
    if(mode)  
                    
    kz_colorchat(pidgreen"%L"pid"PKU_HOOK_AT_TARGET"name
                else  
                    
    kz_colorchat(pidgreen"%L"pid"PKU_HOOK_TAKE_TARGET"name
            } 
        } 
        return 
    PLUGIN_HANDLED 


    public 
    HookOn(id)   

        if(!
    g_bCanUseHook[id] && !g_bPlayerIsAdmin[id]) 
            return 
    PLUGIN_HANDLED 
        
        
    if(is_plr_connected[id] && is_user_alive(id)) 
        { 
            
    get_user_origin(idg_iHookOrigin[id], 3
            
            if(
    callfunc_begin("DetectCheat","ProKreedz_v2.3.amxx") == 1)  
            { 
                
    callfunc_push_int(id
                
    callfunc_push_str("Hook"
                
    callfunc_end() 
            } 
            
    emit_sound(idCHAN_BODYHOOK_SOUNDVOL_NORMATTN_NORM0PITCH_HIGH)
            
    g_bIsHooked[id] = HOOK_ON 
        

        return 
    PLUGIN_HANDLED 


    public 
    HookOff(id)  

        
    g_bIsHooked[id] = HOOK_RELEASE 
        
    return PLUGIN_HANDLED 


    public 
    fw_ThinkEnt(iEnt

        if (
    pev_valid(iEnt))  
        {  
            static 
    ClassName[33
            
    pev(iEntpev_classnameClassName32
            
            if(
    equal(ClassName"hook_think")) 
            { 
                
    fw_HookThink() 
                
    set_pev(iEntpev_nextthinkget_gametime() + 0.1
            } 
        } 


    public 
    fw_HookThink() 

        static 
    idorigin[3], Float:velocity[3], distance 
        
    for(id id <= g_iMaxPlayers id++)  
        { 
            if(
    g_bIsHooked[id] == HOOK_ON
            { 
                
    message_begin(MSG_BROADCASTSVC_TEMPENTITY
                
    write_byte(1)              // TE_BEAMENTPOINT 
                
    write_short(id)              // entid 
                
    write_coord(g_iHookOrigin[id][0]) // origin 
                
    write_coord(g_iHookOrigin[id][1]) // origin 
                
    write_coord(g_iHookOrigin[id][2]) // origin 
                
    if(g_bPlayerIsAdmin[id]) 
                { 
                    
    write_short(g_SpriteBeam)      // sprite index 
                    
    write_byte(0)              // start frame 
                    
    write_byte(0)              // framerate 
                    
    write_byte(2)              // life 
                    
    write_byte(20)              // width 
                    
    write_byte(0
                    
    write_byte(RANDOM_NUM// r 
                    
    write_byte(RANDOM_NUM// g 
                    
    write_byte(RANDOM_NUM// b 
                

                else  
                { 
                    
    write_short(g_SpriteLaser)      // sprite index 
                    
    write_byte(0)              // start frame 
                    
    write_byte(0)              // framerate 
                    
    write_byte(2)              // life 
                    
    write_byte(10)              // width 
                    
    write_byte(0
                    
    write_byte(RED)           // r 
                    
    write_byte(GREEN)      // g 
                    
    write_byte(BLUE)       // b 
                

                
    write_byte(150)                   // brightness 
                
    write_byte(0)                   // speed 
                
    message_end() 
                
                
    get_user_origin(idorigin
                
    distance get_distance(g_iHookOrigin[id], origin
                if(
    distance 25)   
                {  
                    
    velocity[0] = (g_iHookOrigin[id][0] - origin[0]) * (2.0 350 distance
                    
    velocity[1] = (g_iHookOrigin[id][1] - origin[1]) * (2.0 350 distance
                    
    velocity[2] = (g_iHookOrigin[id][2] - origin[2]) * (2.0 350 distance
                    
    set_pev(idpev_velocityvelocity
                } 
            } 
            else if(
    g_bIsHooked[id] == HOOK_RELEASE
            { 
                
    g_bIsHooked[id] = HOOK_OFF 
            

        } 


    kz_colorchat(idcolor:type, const msg[], {Float,Sql,Result,_}:...) { 
        
        static 
    message[256], pkmsg[180], changed[8], argscount,
        argscount 
    numargs() 
        
        switch(
    type)  
        { 
            case 
    normalmessage[0] = 0x01 
                
            
    case greenmessage[0] = 0x04 
                
            
    default: message[0] = 0x03 
            
        

        new 
    pktag[32
        
    get_pcvar_string(g_kz_tagpktag31
        
        if(
    id
        { 
            if(
    is_plr_connected[id]) 
            { 
                
    vformat(pkmsg179msg4
                
    formatex(message[1], 255"%s %s"pktagpkmsg
                
    message[192] = '^0' 
                
                
    replace_all(message191"!g""^x04"
                
    replace_all(message191"!n""^x01"
                
    replace_all(message191"!t""^x03"
                
    kz_print_msg(idmessage
            } 
        }  
        else  
        { 
            for(new 
    1<= g_iMaxPlayersi++) 
            { 
                if(
    is_plr_connected[i]) 
                { 
                    new 
    changedcount 
                    
                    
    for(2argscountj++) 
                    { 
                        if(
    getarg(j) == LANG_PLAYER
                        { 
                            
    setarg(j0i); 
                            
    changed[changedcount++] = j
                        } 
                    } 
                    
    vformat(pkmsg179msg4
                    
    formatex(message[1], 255"%s %s"pktagpkmsg
                    
    message[192] = '^0' 
                    
                    
    replace_all(message191"!g""^x04"
                    
    replace_all(message191"!n""^x01"
                    
    replace_all(message191"!t""^x03"
                    
    kz_print_msg(imessage
                    
                    for(
    0changedcountj++) 
                    { 
                        
    setarg(changed[j], 0LANG_PLAYER
                    } 
                } 
            } 
        } 


    stock kz_print_msg(id, const msg[]) 

        
    message_begin(MSG_ONE_UNRELIABLEg_SayText_id
        
    write_byte(id)         
        
    write_string(msg
        
    message_end() 


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    CS:GO ve CS 1.6 için ücretli eklenti yapılır.
    Plugin yazmak isteyenlere yardımcı olabilirim.
    Skype adresimden ulaşabilirsiniz:
    destek_596
    Steam: http://steamcommunity.com/id/ca-nemesis/


  6. #6
    cavus er
    Üyelik tarihi
    Feb 2012
    Mesajlar
    296
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    9

    Standart Cevap: Hook

    Berk tsk seninki olmus.

  7. #7
    er banned
    Üyelik tarihi
    Dec 2012
    Mesajlar
    23
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    0

    Standart Cevap: Hook

    idare eder .d

Benzer Konular

  1. [JB] ProKreedz Hook v2.3
    By Schwertle in forum Jail & Deathrun Pluginler
    Cevaplar: 88
    Son Mesaj: 04-04-17, 19:35
  2. [JB] Hook ( Ağ Atma )
    By NiCoMeDiA in forum Jail & Deathrun Pluginler
    Cevaplar: 362
    Son Mesaj: 29-01-16, 16:19
  3. CS 1.6 Hook New v5.0
    By LeqenD in forum [PLUGİN] Cs 1.6 Eklentiler
    Cevaplar: 31
    Son Mesaj: 01-03-13, 12:23
  4. Ct'ye özel hook
    By Tksharmely in forum Çözülmüş İstekler
    Cevaplar: 12
    Son Mesaj: 28-08-12, 11:37

Kullanıcıların arama motorlarındaki kullandığı taglar:

Counter Strike 1.6 Cfg, plugin, eklenti, sxe, config, skin, setup
Counter Strike

Bu Konudaki Etiketler

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  

SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121