27.01.2012, 17:02
Hello,i've another problem.
I'm using OnPlayerDeath if a player as TEAM_COP has killed another player that is TEAM_CIV.
But i'm getting errors,what's wrong?
I'm using OnPlayerDeath if a player as TEAM_COP has killed another player that is TEAM_CIV.
pawn Код:
if(gTeam[playerid] == TEAM_COP) && killerid gTeam[playerid] == TEAM_CIV
{
SendClientMessage(playerid, COLOR_BLUE, "You killed a civilian! -2 score for you.");
SetPlayerScore(playerid, GetPlayerScore(playerid) -2);
}