SA-MP Forums Archive
No fight - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: No fight (/showthread.php?tid=279840)



No fight - BGMike - 29.08.2011

Hello, I want to ask is there any function when FEvent to the player is equal to 0 and the player will be killed when hit another player ?


Re: No fight - IceCube! - 29.08.2011

YOu mean like use the OnPlayerShootPlayer incude then

pawn Код:
Use Public OnplayerSHootPlayer
{
     SetPlayerHealth(Shooter, 0);
     SendClientMessage(Shooter, colour, "You have been killed for attacking a player");
}
If you mean inside a car let me know

Im not sure if his works for punch / knife attacks


https://sampforum.blast.hk/showthread.php?tid=195439 - OPSP Include


Re: No fight - BGMike - 29.08.2011

This not working.


Re: No fight - =WoR=Varth - 29.08.2011

Error or what?