Safezone
#1

How do the spawn civil to be unable to kill ?
Reply
#2

Look at the following thread and then mix it up with the "civilian" class?

https://sampforum.blast.hk/showthread.php?tid=161639
Reply
#3

I want to do something to not be able to pull in civil spawn.
Reply
#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
#5

I can help me ?
Reply
#6

?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)