Help me
#1

I need script for one hit kill for hitman with sniper?

Could anyone help me?
Reply
#2

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && issuerid != playerid) //If the player who issued it was not an invalid player or the player themself
    {
        if(weaponid == 34) SetPlayerHealth(playerid, 0.0); //Kill the player
    }
    return 1;
}
Sources:
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
https://sampwiki.blast.hk/wiki/SetPlayerHealth
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
Reply
#3

Alright, How could i define that issuerid is hitman member ?
Reply
#4

Well that depends... how do 'you' do it?

if(Hitman[issuerid] == 1) ?

I cannot tell you without seeing your script, or your variables at the least.
Reply
#5

PlayerInfo[playerid][pMember] == 8;

8 denotes HITMAN Faction
Reply
#6

Код:
if(weaponid == 34 && PlayerInfo[issuerid][pMember] == 8) SetPlayerHealth(playerid, 0.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)