07.07.2014, 07:58
Then you must use IsPlayerInRangeOfPoint. With this function, you'll be able to set an area for the civils, and nobody except the civilians will be able to be inside it. An example of how it should look like:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
if(PlayerIsCivilian(playerid))
{
SendClientMessage(playerid,-1,"You are a civilian, you can stay here.");
}
else
{
SetPlayerPos(playerid, 2680.6880, -1704.6333, 11.8438)//SetPlayerPos somewhere outside the RangeOfPoint above
SendClientMessage(playerid, -1, "You are not a civilian, you can't stay here!")
}
return 1;
}