[Pomoc] Only Headshot
Results 1 to 8 of 8

Thread: Only Headshot

  1. #1
    Junior Member Array
    Join Date
    Sep 2017
    Location
    Macedonia
    Karma
    0

    Default Only Headshot

    Jel ima neko plugin koji kada kucas /hs da se aktivira hs mod only odnosno taj sto kuca /hs samo on moze da ubija u glavu...
    Odnosno on bira da bude onlyhs ali za njega ne za ceo srw.

    Have hella good day.
    I'm so bad i could bitch slap a back handed compliment

  2. #2
    Junior Member Array
    Join Date
    Jan 2018
    Karma
    0

    Default

    Code:
    #include <amxmodx>
    #include <fun>
    
    #define PLUGIN "HS Only MOD"
    #define VERSION "1.0"
    #define AUTHOR "InsaNe"
    
    public plugin_init()
    {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	register_clcmd("say /hs_on", "HSOnlyMOD")
    	register_clcmd("say /hs_off", "HSOnlyMOD")
    	register_clcmd("say_team /hs_on", "HSOnlyMOD")
    	register_clcmd("say_team /hs_off", "HSOnlyMOD")
    }
    
    public HSOnlyMOD(id)
    {
    	new arg[8]
    	read_argv(1, arg, 7)
    
    	if((equali(arg, "on"))||(equali(arg, "1")))
    	{
    		set_user_hitzones(0 ,0, 2)
    		client_print(id, print_console, "[AMXX] ENABLED Headshot only mode")
    	}
    	if((equali(arg, "off"))||(equali(arg, "1")))
    	{
    		set_user_hitzones(0, 0, 255)
    		client_print(id, print_console, "[AMXX] DISABLED Headshot only mode")
    	}
    	return PLUGIN_HANDLED
    }
    Komande: say: /hs_on i say: /hs_off
    Last edited by .InsaNe; 01-01-2018 at 21:30.

  3. #3
    Senior Member Array
    Join Date
    Jun 2013
    Location
    K und K monarhija
    Karma
    20

    Default

    Quote Originally Posted by .InsaNe View Post
    Code:
    #include <amxmodx>
    #include <fun>
    
    #define PLUGIN "HS Only MOD"
    #define VERSION "1.0"
    #define AUTHOR "InsaNe"
    
    public plugin_init()
    {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	register_clcmd("say /hs_on", "HSOnlyMOD")
    	register_clcmd("say /hs_off", "HSOnlyMOD")
    	register_clcmd("say_team /hs_on", "HSOnlyMOD")
    	register_clcmd("say_team /hs_off", "HSOnlyMOD")
    }
    
    public HSOnlyMOD(id)
    {
    	new arg[8]
    	read_argv(1, arg, 7)
    
    	if((equali(arg, "on"))||(equali(arg, "1")))
    	{
    		set_user_hitzones(0 ,0, 2)
    		client_print(id, print_console, "[AMXX] ENABLED Headshot only mode")
    	}
    	if((equali(arg, "off"))||(equali(arg, "1")))
    	{
    		set_user_hitzones(0, 0, 255)
    		client_print(id, print_console, "[AMXX] DISABLED Headshot only mode")
    	}
    	return PLUGIN_HANDLED
    }
    Komande: say: /hs_on i say: /hs_off
    Nemoj da delis ljudima po forumu plugine koji ne rade. Prvo testiraj
    double penetration sadomazo satisfaction
    kao svedski akcioni kada kazu action

  4. #4
    Junior Member Array
    Join Date
    Jan 2018
    Karma
    0

    Default

    Quote Originally Posted by DecaK View Post
    Nemoj da delis ljudima po forumu plugine koji ne rade. Prvo testiraj
    Haha dobra fora

    Code:
    #include <amxmodx>
    #include <fun>
    
    #define PLUGIN "HS Only MOD"
    #define VERSION "1.0"
    #define AUTHOR "InsaNe"
    
    public plugin_init()
    {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	register_clcmd("say /hs_on", "EnableHSMOD")
    	register_clcmd("say /hs_off", "DisableHSMOD")
    	register_clcmd("say_team /hs_on", "EnableHSMOD")
    	register_clcmd("say_team /hs_off", "DisableHSMOD")
    }
    
    public EnableHSMOD(id)
    {
    	set_user_hitzones(0 ,0, 2)
    	client_print(id, print_chat, "[AMXX] ENABLED Headshot only mode")
    }
    
    public DisableHSMOD(id)
    {		
    	set_user_hitzones(0, 0, 255)
    	client_print(id, print_chat, "[AMXX] DISABLED Headshot only mode")
    }

  5. #5
    Junior Member Array
    Join Date
    Jul 2016
    Location
    Macedonia
    Karma
    0

    Default

    I didn't quite understand your request, can you explain it to me in English?
    I made this but I'm not totally sure if it's what you're looking for.

    PHP Code:
    #include < amxmodx >
    #include < hamsandwich >
    #include < fakemeta >

    new bool:g_bHeadShotOn33 ];

    public 
    plugin_init( )
    {
        
    register_plugin"HS Only""1.0""DoNii" );
        
        
    register_clcmd"say /hs""OnHeadShot" );
        
        
    RegisterHamHam_TraceAttack"player""fw_HamTraceAttackPre");
    }

    public 
    client_connectid )
        
    g_bHeadShotOnid ] = false;

    public 
    client_disconnectid )
        
    g_bHeadShotOnid ] = false;    

    public 
    OnHeadShotid )
        
    g_bHeadShotOnid ] = !( g_bHeadShotOnid ] );

    public 
    fw_HamTraceAttackPreiVictimiAttackerFloat:fDamageFloat:fVecDir], iTraceResultiDamageBits )
    {
        if( ! 
    is_user_connectediVictim ) || ! is_user_connectediAttacker ) )
        return 
    HAM_IGNORED;
        
        new 
    iHit get_tr2iTraceResultTR_iHitgroup );
        
        if( ! 
    g_bHeadShotOniAttacker ] && iHit == HIT_HEAD )
        return 
    HAM_SUPERCEDE;
        
        return 
    HAM_IGNORED;

    Last edited by doni1337; 26-01-2018 at 22:31.

  6. #6
    Super Moderator Array klipica's Avatar
    Join Date
    Apr 2010
    Karma
    28

    Default

    Quote Originally Posted by KGB [SRB] View Post
    sinak to je moj hosting trenutno je u izradi znaci sredjujem ga


    #DecaK
    nemam brt vremena da promenim
    Ne glupiraj se.

    Quote Originally Posted by KGB [SRB] View Post
    #klipica
    nije meni mrsko stalno cu stavljati link u potpis sve dok ne dobijem ban sa foruma
    Nije problem.

    Quote Originally Posted by KGB [SRB] View Post
    "Otkud ti znas da nije, imas li dokaz?"
    pa pogledaj mu ime autora pa sve ce ti bude jasno
    I ja na razlicitim forumima imam razlicita imena. Da, to je on.
    Ne znam zasto uopste imas potrebu da dokazujes da to nije on uradio kada kod ima 30 linija i svako ko je searchovao par minuta je mogao napraviti to isto.

    Quote Originally Posted by KGB [SRB] View Post
    (samo da kazem bice opet doss server [cenzura] tako ako nastavis zna se za koga)

    Moj gt.rs: http://www.gametracker.rs/user_info/167610/

    BY: HACKER TUF
    U potpisu "HACKER", mora da si opasan jako.
    Last edited by klipica; 11-01-2018 at 03:45.
    Code:
    #YoMama {
        width: 200%;
        overflow: visible;
    }

  7. #7
    Junior Member Array
    Join Date
    Sep 2017
    Location
    Macedonia
    Karma
    0

    Default

    Quote Originally Posted by doni1337 View Post
    I didn't quite understand your request, can you explain it to me in English?
    I made this but I'm not totally sure if it's what you're looking for.

    PHP Code:
    #include < amxmodx >
    #include < hamsandwich >
    #include < fakemeta >

    new bool:g_bHeadShotOn33 ];

    public 
    plugin_init( )
    {
        
    register_plugin"HS Only""1.0""DoNii" );
        
        
    register_clcmd"say /hs""OnHeadShot" );
        
        
    RegisterHamHam_TraceAttack"player""fw_HamTraceAttackPre");
    }

    public 
    client_connectid )
        
    g_bHeadShotOnid ] = false;

    public 
    client_disconnectid )
        
    g_bHeadShotOnid ] = false;    

    public 
    OnHeadShotid )
        
    g_bHeadShotOnid ] = !( g_bHeadShotOnid ] );

    public 
    fw_HamTraceAttackPreiVictimiAttackerFloat:fDamageFloat:fVecDir], iTraceResultiDamageBits )
    {
        if( ! 
    is_user_connectediVictim ) || ! is_user_connectediAttacker ) )
        return 
    HAM_IGNORED;
        
        new 
    iHit get_tr2iTraceResultTR_iHitgroup );
        
        if( ! 
    g_bHeadShotOniAttacker ] && iHit == HIT_HEAD )
        return 
    HAM_SUPERCEDE;
        
        return 
    HAM_IGNORED;

    My request was when you write down /hs to activate headshot mode only for the player that wrote down /hs, i will try ur code tomorrow and tell you if it works,untill then if u have something better post it.
    Thanks!

    Have hella good day.
    I'm so bad i could bitch slap a back handed compliment

  8. #8
    Junior Member Array
    Join Date
    Jul 2016
    Location
    Macedonia
    Karma
    0

    Default

    Quote Originally Posted by DeflectionGod View Post
    My request was when you write down /hs to activate headshot mode only for the player that wrote down /hs, i will try ur code tomorrow and tell you if it works,untill then if u have something better post it.
    Thanks!
    I actually meant to explain what this 'Headshot only' mode is.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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