[Tutorial] Headshot System!
#7

Quote:
Originally Posted by FloxX
Посмотреть сообщение
Hello Everybody i want to show you code for Headshot system

Lets startt!!!!

One shot to the head to kill with sniper rifle
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        // One shot to the head to kill with sniper rifle
        SetPlayerHealth(playerid, 0.0);
    }
    return 1;
}
One Shot to the head to kill with all weapon
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount)
{
    if(issuerid != INVALID_PLAYER_ID )
    {
        // One Shot to the head to kill with all weapon
        SetPlayerHealth(playerid, 0.0);
    }
    return 1;
}
Question?
What Is Bodyparts ??
What Is Weaponid ??

Answer!!!!
Bodyparts - https://sampwiki.blast.hk/wiki/Body_Parts
Weaponid - https://sampwiki.blast.hk/wiki/Weapons



Find me
https://www.********.com/Vahnntech
Thank before ...
So umm...... you made a tutorial about something you don't know about.... Waw! BTW u used two different callbacks but that's none of my business.... Wait you got questions you not suppose to have questions in tutorial that's what the scripting section is for isn't it :O....

please remove this Abomination
Reply


Messages In This Thread
Headshot System! - by FloxX - 04.10.2014, 07:54
Re: Headshot System! - by Rudy_ - 04.10.2014, 07:59
Re: Headshot System! - by highstreetsrp - 04.10.2014, 08:09
Re: Headshot System! - by YanLanger - 04.10.2014, 08:13
AW: Headshot System! - by lcp9 - 07.10.2014, 07:42
Re: Headshot System! - by ReD_DeVi - 07.10.2014, 07:47
Re: Headshot System! - by trapstar2020 - 07.10.2014, 07:52
Re: Headshot System! - by Sparke - 12.11.2014, 04:15
Re: Headshot System! - by Glossy42O - 12.11.2014, 04:16
Re: Headshot System! - by Sparke - 12.11.2014, 04:18
Re: Headshot System! - by Adarsh007 - 14.11.2014, 05:47
Re: Headshot System! - by Jakwob - 18.11.2014, 20:25
Re: Headshot System! - by Pravin - 20.11.2014, 07:17
Re: Headshot System! - by Arastair - 20.11.2014, 08:16
Re: Headshot System! - by Toxik - 20.11.2014, 09:59
Re: Headshot System! - by LeXuZ - 20.11.2014, 17:52
Re: Headshot System! - by DaniceMcHarley - 20.11.2014, 17:55
Re: Headshot System! - by fahlevy - 21.12.2014, 23:57
Re: Headshot System! - by Abagail - 22.12.2014, 00:11
Re: Headshot System! - by Cyber123 - 22.12.2014, 02:42
Re: Headshot System! - by JaKe Elite - 22.12.2014, 03:27
Re: Headshot System! - by CoaPsyFactor - 22.12.2014, 07:12
Re: Headshot System! - by Madddy - 09.12.2017, 06:32
Re: Headshot System! - by RogueDrifter - 20.12.2017, 04:55
Re: Headshot System! - by rfr - 24.12.2017, 07:02
Re: Headshot System! - by GlorifiedPig - 28.12.2017, 08:59

Forum Jump:


Users browsing this thread: 1 Guest(s)