Originally Posted by SyS
I believe
PHP Code:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 572.5297+11400,-2759.7271-10000,13.9872) && IsPlayerInRangeOfPoint(playerid, 5.0, 12368.1885,-11937.6396,5.5338) && IsPlayerInRangeOfPoint(playerid, 5.0, 12368.8154,-11943.2422,5.5425) && IsPlayerInRangeOfPoint(playerid, 5.0, 12371.4863,-11948.7529,5.5312) && IsPlayerInRangeOfPoint(playerid, 5.0, 12365.1885,-11938.9287,5.5332))
should be in OR cases ( || ) instead of logical AND (&&) as all those cases wont be true at same time.
You might meant to do this way if player is in either of these range
PHP Code:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 572.5297+11400,-2759.7271-10000,13.9872) || IsPlayerInRangeOfPoint(playerid, 5.0, 12368.1885,-11937.6396,5.5338) || IsPlayerInRangeOfPoint(playerid, 5.0, 12368.8154,-11943.2422,5.5425) || IsPlayerInRangeOfPoint(playerid, 5.0, 12371.4863,-11948.7529,5.5312) || IsPlayerInRangeOfPoint(playerid, 5.0, 12365.1885,-11938.9287,5.5332))
|