Team kill
#4

The only thing that i can come up with that could be wrong, is that playerid probably is set off playerid's team before this code is executed.
If the dead playerid is set off both teams when dead, playerid will come up as false in the if statement stating if playerid is on killerid's opposite team, which makes the reward code-piece execute.

EDIT:
Wait a min, if(Eastteam[playerid] == Eastteam[killerid]).
How would playerid ever be equal to killerid?
I don't see the logic in making teams this way.
Well, you need to run a for loop running through the id's in Eastteam and Westteam, then state if the id of playerid and killerid is within the same team array.
Reply


Messages In This Thread
Team kill - by jamesb93 - 12.05.2009, 21:08
Re: Team kill - by JaYmE - 12.05.2009, 21:52
Re: Team kill - by will_92 - 13.05.2009, 00:44
Re: Team kill - by Mr-Tape - 13.05.2009, 01:33
Re: Team kill - by Outbreak - 13.05.2009, 08:27
Re: Team kill - by StrickenKid - 13.05.2009, 14:34

Forum Jump:


Users browsing this thread: 4 Guest(s)