Posts: 148
Threads: 5
Joined: Jun 2011
you would need to do
OnPlayerShootPlayer
which can be downloaded
Then check the side there on and check which side they killed
then if they killed a team mate you can kill them by setting health to 0
Edit
PS: if you'd like help with the code post your team varibles and stuff here no the system just the varibles you have to find a team
EDIT
https://sampforum.blast.hk/showthread.php?tid=195439 this should help you
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by PGTips
you would need to do
OnPlayerShootPlayer
which can be downloaded
Then check the side there on and check which side they killed
then if they killed a team mate you can kill them by setting health to 0
PS: if you'd like help with the code post your team varibles and stuff here no the system just the varibles you have to find a team
|
He said
kills, meaning OnPlayerDeath would be suitable.
Yes, you can do this - record what gang zone the player is fighting for and in OnPlayerDeath, check if killerid is for the same gang zone then use SetPlayerHealth() to set the player's health to 0.
Posts: 148
Threads: 5
Joined: Jun 2011
Quote:
Originally Posted by Calg00ne
He said kills, meaning OnPlayerDeath would be suitable.
Yes, you can do this - record what gang zone the player is fighting for and in OnPlayerDeath, check if killerid is for the same gang zone then use SetPlayerHealth() to set the player's health to 0.
|
Oh sorry i though he like wanted it so like the betrayer dies for shooting somone ill read carfully next time