Head Shot
#1

How do i make head shot for sniper only?
Reply
#2

Use the search button mate..

https://sampforum.blast.hk/showthread.php?tid=496120
Reply
#3

Quote:
Originally Posted by [..MonTaNa..]
Посмотреть сообщение
lol, its Team Headshot system.

I have roleplay server
Reply
#4

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(bodypart == BULLET_HIT_TYPE_HEAD) {
SetPlayerHealth(playerid, 0.0);
new string[128];
format(string, sizeof(string), "HEAD-SHOT: %s has shot you in the head(weaponID %d)", GetName(issuerid) weaponid);
SendClientMessage(playerid, -1, string);
}
return 1;
}
Untested.
Reply
#5

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0.0);
        GameTextForPlayer(playerid, "~r~HEADSHOT!", 7000, 5); // Will display to the person who is killed.
        SendClilentMessage(issuerid, -1, " Headshot Kill!"); // Will display to the person who killed.
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)