Raised This Month: $ Target: $400
 0% 

Name of Back? HIT_BACK? Help pls.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bob1
Member
Join Date: Sep 2011
Location: Denmark
Old 09-24-2011 , 04:00   Name of Back? HIT_BACK? Help pls.
Reply With Quote #1

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.
__________________
Mini-Scripter.

Last edited by Bob1; 09-24-2011 at 04:43.
Bob1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-24-2011 , 04:33   Re: Need help please.
Reply With Quote #2

Change your title before you post again, thanks.
Titles must be descriptive.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bob1
Member
Join Date: Sep 2011
Location: Denmark
Old 09-24-2011 , 04:44   Re: Name of Back? HIT_BACK? Help pls.
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Change your title before you post again, thanks.
Titles must be descriptive.
is this ok?
__________________
Mini-Scripter.
Bob1 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-24-2011 , 04:54   Re: Name of Back? HIT_BACK? Help pls.
Reply With Quote #4

It doesn't exist and you have already many posts about this problem, please search.
__________________
Arkshine is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 09-24-2011 , 05:33   Re: Name of Back? HIT_BACK? Help pls.
Reply With Quote #5

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]++
}
__________________
Thanks and regards,
Gamer99
gamer99 is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 09-24-2011 , 05:39   Re: Name of Back? HIT_BACK? Help pls.
Reply With Quote #6

Well coded:

register_clcmd("prevention", "prevention")

client_cmd(Attacker, "prevention")

xD
reinert is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 09-24-2011 , 06:25   Re: Name of Back? HIT_BACK? Help pls.
Reply With Quote #7

Quote:
Originally Posted by reinert View Post
Well coded:

register_clcmd("prevention", "prevention")

client_cmd(Attacker, "prevention")

xD
it's not my plugin. I just pasted the code ;)
__________________
Thanks and regards,
Gamer99
gamer99 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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