protected area - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: protected area (
/showthread.php?tid=159721)
protected area -
ZFunn - 14.07.2010
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"
Re: protected area -
oliverrud - 14.07.2010
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
Re: protected area -
ZFunn - 14.07.2010
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;
}
}
Re: protected area -
oliverrud - 14.07.2010
What's the problem? Any errors or any warnings?
Re: protected area -
ZFunn - 14.07.2010
No, but when hitting Enter in the game, I don't see textdraw
Re: protected area -
oliverrud - 14.07.2010
That's not a textdraw, that's a message, look in the message box ingame.
Re: protected area -
ZFunn - 14.07.2010
I do not see anything
Re: protected area -
oliverrud - 14.07.2010
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.
Re: protected area -
ikey07 - 14.07.2010
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^^
Re: protected area -
ZFunn - 14.07.2010
wrong coordinates. How can I get the correct coordinates