06.01.2015, 21:56
Quote:
IsPlayerInArea is not a SA:MP function. You'll need to provide the stock / whatever for IsPlayerInArea. This is useless without it(and also put the script on pastebin).
|
Anyway -
PHP код:
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
new Float:x, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
return (X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) ? 1 : 0;
}