Sniper hart choose
#1

Hey sry to bother guys but I just want to make RP system for hitmans of that how can I make that by two shoots sniper can kill somone with armor 100% even , Only by sniper ? Somone knows ?
Ty and sry for bother.
Reply
#2

Check out OnPlayerTakeDamage
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Reply
#3

Thank you very much sir.
Reply
#4

Sir , Doesnt work
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
	if(issuerid != INVALID_PLAYER_ID)
	{
	    ShotPlayer[issuerid][playerid] = gettime();
	    LastShot[playerid] = gettime();
	}
     else if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
    {
        // One shot to kill with sniper rifle
        SetPlayerHealth(playerid, 0.0);
    }
    else if(issuerid != INVALID_PLAYER_ID && weaponid == 38)
    {
        // One shot to kill with Minigun
        SetPlayerHealth(playerid, 0.0);
    }
	return 1;
}
Would you can fix it sir please ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)