Safezone
#4

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;
    }
Reply


Messages In This Thread
Safezone - by madalin912 - 07.07.2014, 07:33
Re: Safezone - by Twizted - 07.07.2014, 07:49
Re: Safezone - by madalin912 - 07.07.2014, 07:50
Re: Safezone - by Twizted - 07.07.2014, 07:58
Re: Safezone - by madalin912 - 07.07.2014, 16:16
Re: Safezone - by madalin912 - 08.07.2014, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)