SA-MP Forums Archive
[FilterScript] Saint's Instant Headshot Kill - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Saint's Instant Headshot Kill (/showthread.php?tid=615557)



Saint's Instant Headshot Kill - oSAINTo - 24.08.2016

Saint's Instant Headshot Kill

This is my very first release on SA-MP forums, I've been wanting to give back to the community for awhile now and well, I decided to release something useful for the public.

Code:
http://pastebin.com/qEgq8VCt



Re: Saint's Instant Headshot Kill - Shinja - 24.08.2016

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    new 
Float:hp//useless
    
new Float:armour//not used
    
GetPlayerHealth(playeridhp);//useless
    
GetPlayerArmour(playeridarmour);//not used
   
    
if(issuerid != INVALID_PLAYER_ID// Can kill team..
    
{
        switch(
bodypart)
        {
            case 
9SetPlayerHealth(playeridhp 250);//why not only SetPlayerHealth(playerid, 0);
        
}
    }




Re: Saint's Instant Headshot Kill - oSAINTo - 24.08.2016

Quote:
Originally Posted by Shinja
Посмотреть сообщение
PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    new 
Float:hp//useless
    
new Float:armour//not used
    
GetPlayerHealth(playeridhp);//useless
    
GetPlayerArmour(playeridarmour);//not used
   
    
if(issuerid != INVALID_PLAYER_ID// Can kill team..
    
{
        switch(
bodypart)
        {
            case 
9SetPlayerHealth(playeridhp 250);//why not only SetPlayerHealth(playerid, 0);
        
}
    }

Oh wow, I just used the float for HP for people to be lazy more or less. Updated.


Re: Saint's Instant Headshot Kill - oMa37 - 24.08.2016

For the first code, I just would say to you, Better don't script anymore lol.


Re: Saint's Instant Headshot Kill - oSAINTo - 24.08.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
For the first code, I just would say to you, Better don't script anymore lol.
I'd prefer instead of you insulting me. Maybe enlighten me on what I can do better and why I should do it.


Re: Saint's Instant Headshot Kill - SyS - 24.08.2016

Snippet not fs


Re: Saint's Instant Headshot Kill - XBrianX - 24.08.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
For the first code, I just would say to you, Better don't script anymore lol.
Why are you insulting him at least he made something at least he tried, I want to see your releases.


Re: Saint's Instant Headshot Kill - oMa37 - 24.08.2016

Chill, lol.
No one insulted anyone here, I didn't mean to insult him or make a joke on him, If this is how you got it, My apologise.


Re: Saint's Instant Headshot Kill - oSAINTo - 24.08.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Chill, lol.
No one insulted anyone here, I didn't mean to insult him or make a joke on him, If this is how you got it, My apologise.
It's fine, just next time instead of telling someone they should stop something they enjoy, just inform them on how they can improve.


Re: Saint's Instant Headshot Kill - Sew_Sumi - 24.08.2016

I'd have thought that this isn't much due to it being on the wiki page.

As stated though, it is more a snippet than a filterscript.