[FilterScript] Saint's Instant Headshot Kill
#1

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
Reply
#2

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);
        
}
    }

Reply
#3

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.
Reply
#4

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

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.
Reply
#6

Snippet not fs
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)