07.06.2012, 07:13
(
Last edited by Shaneisace; 07/06/2012 at 08:12 AM.
)
Quote:
|
There is an exclamation mark instead of an equals sign in your OnPlayerGiveDamage.
pawn Code:
|
pawn Code:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
/*if(gTeam[playerid] == TEAM_COP || TEAM_ARMY)
{
}*/
// No point in the above code since there is nothing to return as we will edit below this to return the correct value
//if(gTeam[playerid] == TEAM_COP || TEAM_ARMY) // when using "||" your telling the code to return the Value to either Team which i guess you don't want to do, so now we need to make it "If isn't TEAM_COP" but is "TEAM_ARMY" this is what you do below
if(gTeam[playerid] != TEAM_COP) // So now if the player isn't listed as "TEAM_COP" it will apply the below code to any other TEAM made
{
if(GetPlayerWantedLevel(playerid) == 0)
{
SetPlayerWantedLevel(playerid,1);
SendClientMessage(playerid,COLOR_RED,"You are now wanted player ! ");
SetPlayerColor(playerid,COLOR_PURPLE);
}
}
return 1;
}


