Need script for headshot -
Fantje - 03.03.2015
Hiye!
I saw a server with headshot kinda system ( script ).
So, if you shoot 1 in the head he dies ( 1 shot needed ) and a Message appears with HEADSHOT.
Do you have a script for this?
EDIT:
I have a problem,
I want to send a message to the killer so I use:
GameTextForPlayer(killerid,"~r~HEAD~y~SHOT",2000,3 );
But I get error...
I know I am noob so can you help me
Re: Need script for headshot -
Arastair - 03.03.2015
Be a little creative, use the Custom weapon damage tutorial, then set the damage for body parts to 0 except the head
Re: Need script for headshot -
Fantje - 03.03.2015
Okay thanks
Re: Need script for headshot -
Fantje - 03.03.2015
Can't figure it out

You may have the script?
Re: Need script for headshot -
Schneider - 03.03.2015
How could you not be able to figure it out while ****** comes up with 21900 search-results?
Re: Need script for headshot -
Fantje - 03.03.2015
I saw one, but I don't know where to add the scripts.
Got it from here:
https://sampforum.blast.hk/showthread.php?tid=558839
Re: Need script for headshot -
Karan007 - 03.03.2015
Add this under the callback Public OnPlayerTakeDamage
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
}
Re: Need script for headshot -
CalvinC - 03.03.2015
You can read my tutorial how to detect / set up bodyparts in OnPlayerTakeDamage, once you got that set up, you can just SetPlayerHealth 0 if the bodypart hit was the head.
But if you want someone to give you a script instead, hire some scripter instead of requesting here.
EDIT: Nvm you made another post at the same time.
Re: Need script for headshot -
Nabster - 03.03.2015
OnPlayerTakeDamage use this callback,read wiki and you will find it
Re: Need script for headshot -
Fantje - 03.03.2015
FIXED!