Posts: 63
Threads: 28
Joined: Jul 2007
Reputation:
0
I want to set sniper for 1 shot kill.
What it's possible?
How can I do.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
You could use a custom callback like OnPlayerLoseHealth(playerid, amount) and check if player health loss is 41 or 42 (sniper damage) and do a loop for all players and check if any player is in distance of 200 meters and if he has a sniper in his hands (GetPlayerWeapon).
But that won't work if player has an armor, so you could also use a custom OnPlayerLoseArmor(playerid, amount) callback.