protected area
#1

How can I do that when you are in a protected area, you can not steal a car or shooting.

Like I prohibits the use of a key "Enter" or "Click"
Reply
#2

I'm not sure but you could go look for a tutorial on like IsPlayerInArea() and then just do some stuff for example make it check when entering a vehicle if your in the area and if your in the area then kick him out of the vehicle.

This might help: https://sampforum.blast.hk/showthread.php?tid=159429
Reply
#3

what is wrong?

Код:
    if(newkeys == KEY_SECONDARY_ATTACK)
     {
         if (IsPlayerInArea(playerid, 1524.33, -2279.55, 1709.12, -2384.77))
       {
            format(string,sizeof(string),"Esti in safe zone");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            return 1;

       }
     }
Reply
#4

What's the problem? Any errors or any warnings?
Reply
#5

No, but when hitting Enter in the game, I don't see textdraw
Reply
#6

That's not a textdraw, that's a message, look in the message box ingame.
Reply
#7

I do not see anything
Reply
#8

pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
     {
         if (IsPlayerInArea(playerid, 1524.33, -2279.55, 1709.12, -2384.77))
       {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"Esti in safe zone");
            return 1;
       }
     }
If this doesn't work then your using wrong coordinates.
Reply
#9

Quote:
Originally Posted by ZFunn
Посмотреть сообщение
I do not see anything
maybe you are not in that area, make that if you are not in tha area, its send message also^^
Reply
#10

wrong coordinates. How can I get the correct coordinates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)