SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 22/09/2018, 01:27 AM   #11
Mazio
Little Clucker
 
Mazio's Avatar
 
Join Date: Sep 2018
Location: India
Posts: 45
Reputation: 22
Default Re: Head Shot System

You can see this for better code : http://wiki.sa-mp.com/wiki/OnPlayerTakeDamage
And for those who would like to see the tutorial, here is it : http://forum.sa-mp.com/showthread.php?t=626185

Next time, try uploading your stuff on GitHub with source code.
Mazio is offline   Reply With Quote
Old 16/12/2018, 03:51 AM   #12
OKStyle
High-roller
 
OKStyle's Avatar
 
Join Date: May 2008
Location: Russia, Orenburg Money: GTA$ 999,999,999
Posts: 3,155
Reputation: 140
Default Re: Head Shot System

Quote:
Originally Posted by Lokii View Post
You could just make it yourself

PHP Code:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    if(
issuerid != 0xFFFF && GetPlayerWeapon(issuerid) > 21 && bodypart == 9)
    {
        
SetPlayerHealth(playerid0.0);
    }
    return 
0;

GetPlayerWeapon(issuerid) != weaponid
__________________
O.K.Style™ Laboratory
Kalcor: "... it's makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."
OKStyle is offline   Reply With Quote
Old 13/01/2019, 06:06 AM   #13
Wherethescripters
Big Clucker
 
Wherethescripters's Avatar
 
Join Date: Dec 2017
Location: Pakistan
Posts: 50
Reputation: 3
Default Re: Head Shot System

Too easy to make....
Wherethescripters is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Outras Armas no Head Shot System Patrick141 Português/Portuguese 2 27/02/2015 08:03 PM
[Ajuda] Head Shot BaianoIn Português/Portuguese 4 25/09/2013 10:44 PM
[FilterScript] [FS] Headshot System ("BOOM Headshots") - 1 shot to head = instant kill lameguy Filterscripts 108 25/01/2013 11:18 AM
Help Head Shot System Neo Karls Scripting Help 1 16/05/2012 02:57 AM
Head Shot System Not Working Correctly. [L3th4l] Help Archive 4 22/07/2010 02:25 AM


All times are GMT. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.