AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Name of Back? HIT_BACK? Help pls. (https://forums.alliedmods.net/showthread.php?t=168088)

Bob1 09-24-2011 04:00

Name of Back? HIT_BACK? Help pls.
 
i need help with name or something in a script.
What is the name of the Back on the player Hitzone Constants?
You know there is head, arms, legs, stomatch and chest. But i dont know Back.
HIT_BACK?
I want to make a anti-behind, on a knife server.

ConnorMcLeod 09-24-2011 04:33

Re: Need help please.
 
Change your title before you post again, thanks.
Titles must be descriptive.

Bob1 09-24-2011 04:44

Re: Name of Back? HIT_BACK? Help pls.
 
Quote:

Originally Posted by ConnorMcLeod (Post 1561993)
Change your title before you post again, thanks.
Titles must be descriptive.

is this ok?

Arkshine 09-24-2011 04:54

Re: Name of Back? HIT_BACK? Help pls.
 
It doesn't exist and you have already many posts about this problem, please search.

gamer99 09-24-2011 05:33

Re: Name of Back? HIT_BACK? Help pls.
 
I got it from one site.

Check if it will do or not.
Code:

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define IsPlayer(%1)  ( 1 <= %1 <= MaxPlayers )
new MaxPlayers,nick[32],detections[33]
static mapname[32]
public plugin_init(){
        get_mapname(mapname,31)
        if (containi(mapname,"35hp_")==-1){
                return PLUGIN_HANDLED_MAIN
        }
        if (containi(mapname,"ka_")==-1){
                return PLUGIN_HANDLED_MAIN
        }
        register_plugin( "AntiRat", "1.0", "<PAWNcoder>")
        RegisterHam( Ham_TakeDamage, "player", "detectDamage" )
        register_clcmd("prevention", "prevention")
        MaxPlayers = get_maxplayers()
}
public client_connect(id){
        detections[id]=0
}
public detectDamage(Victim, Inflictor, Attacker, Float:Damage, Damagebits){
        if(IsPlayer(Attacker) && Damage==195.0){
                client_cmd(Attacker, "prevention")
        }
}
public prevention(id){
        set_hudmessage(255, 255, 255, -1.0, 0.4, 6.0, 12.0, 5.0)
        client_cmd(id, "speak danger")
        switch(detections[id]){
                    case 0:{
                        show_hudmessage(id, "[1/3] Don't cut in a back!!!")
                }
                case 1:{
                        show_hudmessage(id, "[2/3] Don't cut in a back!!!")
                }
                case 2:{
                        get_user_name(id,nick,sizeof nick -1)
                        client_print(0,print_chat,"[Anti-Rat] Player %s was kicked!!!", nick)
                        server_cmd("kick #%d Don't cut in a back!!!",get_user_userid(id))
                }
        }
        detections[id]++
}


reinert 09-24-2011 05:39

Re: Name of Back? HIT_BACK? Help pls.
 
Well coded:

register_clcmd("prevention", "prevention")

client_cmd(Attacker, "prevention")

xD

gamer99 09-24-2011 06:25

Re: Name of Back? HIT_BACK? Help pls.
 
Quote:

Originally Posted by reinert (Post 1562018)
Well coded:

register_clcmd("prevention", "prevention")

client_cmd(Attacker, "prevention")

xD

it's not my plugin. I just pasted the code ;)


All times are GMT -4. The time now is 19:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.