06.02.2011, 13:35
So, you want it so there's no friendly fire? You can use OnPlayerShootPlayer:
http://forum.sa-mp.com/showthread.ph...highlight=OPSP
And make it so like:
And then, find the 'IsPlayerAiming' function and make it so it checks the target's health when the player aims at him. You need to make a new float called health too.
http://forum.sa-mp.com/showthread.ph...highlight=OPSP
And make it so like:
Код:
public OnPlayerShootPlayer(shooter,target,Float:damage) { if(Team[target] == Team[shooter]) { SetPlayerHealth(target,health); return 1; } }