Raised This Month: $ Target: $400
 0% 

[HELP] HEADSHOT CLASS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-29-2009 , 17:33   [HELP] HEADSHOT CLASS
Reply With Quote #1

Can any1 tell me how to make this guy so u can only headshot him?
}
case 10:// Hitbox Class
{
StripUserWeapons(id)
cs_set_user_defuse(id, 1)

give_item (id, "weapon_knife")

set_user_hitzones( ???

client_print(id, print_chat, "%s You have chosen the Hitbox Class(HEAD HITS ONLY)", PREFIX)
}
malec321 is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 06-29-2009 , 17:44   Re: [HELP] HEADSHOT CLASS
Reply With Quote #2

Param @ set_user_hitszone must be 2
__________________

anakin_cstrike is offline
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-29-2009 , 19:17   Re: [HELP] HEADSHOT CLASS
Reply With Quote #3

set_user_hitzone (id, 2) ?
malec321 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-29-2009 , 19:35   Re: [HELP] HEADSHOT CLASS
Reply With Quote #4

No, he said there must be 2 parameters, which after making my post below, is wrong.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 06-29-2009 at 21:49.
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 06-29-2009 , 19:49   Re: [HELP] HEADSHOT CLASS
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
No, he said there must be 2 parameters.
I meant what malec321 posted.
__________________

anakin_cstrike is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-29-2009 , 21:49   Re: [HELP] HEADSHOT CLASS
Reply With Quote #6

Then you are wrong.

http://www.amxmodx.org/funcwiki.php?...ones&go=search

Quote:
set_user_hitzones ( index = 0, target = 0, body = 255 )

...

Sets hit zones for player.
Parts of body are as bits:
1 - generic
2 - head
4 - chest
8 - stomach
16 - left arm
32 - right arm
64 - left leg
128 - right leg

...

Set index to 0 and target to a player's index to define what bodyparts on player other players can hit when they are firing.
set_user_hitzones(0, id, 2);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 06-30-2009 , 11:24   Re: [HELP] HEADSHOT CLASS
Reply With Quote #7

I've forgot about that, damn...and the funny thing is that i used that function a couple of weeks ago
__________________

anakin_cstrike 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 15:35.


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