Gang kill rewards (NEED IDEA)
#3

OnPlayerDeath have to arguments - "playerid" and "killerid".

So i assume you are not using SetPlayerTeam, otherwise there is no way a team member can kill another team member.

So you can just compare the way you checked the team in loop:
PHP код:
if (PlayerInfo[playerid][pJob] != PlayerInfo[killerid][pJob]) {} 
And if this statement is true, you continue your loop inside it. About your loop, you need to modify it to this (you only want to give score to connected gang members right?):
PHP код:
for (new 0GetPlayerPoolSize(); <= ji++) {
    if (
IsPlayerConnected(i)) {
        
// do your if statements here
    
}

Reply


Messages In This Thread
Gang kill rewards (NEED IDEA) - by MrakBuster - 10.02.2018, 15:43
Re: Gang kill rewards (NEED IDEA) - by JasonRiggs - 10.02.2018, 15:48
Re: Gang kill rewards (NEED IDEA) - by Gammix - 10.02.2018, 15:50
Re: Gang kill rewards (NEED IDEA) - by MrakBuster - 11.02.2018, 01:03
Re: Gang kill rewards (NEED IDEA) - by Astralis - 11.02.2018, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)