22.12.2010, 07:09
You would use IsPlayerInRangeOfPoint - If they are within that range, check which team they are on (depending on your script) and set their wanted level accordingly. An example usage would be:
pawn Код:
if( IsPlayerInRangeOfPoint( playerid, 5.0, 0.00, 0.00, 0.00 ) )
{
if( GetPlayerTeam( playerid ) != 1 )
{
SetPlayerWantedLevel( playerid, GetPlayerWantedLevel( playerid ) + 2 );
}
}