07.07.2009, 23:04
https://sampwiki.blast.hk/wiki/Areacheck
https://sampwiki.blast.hk/wiki/Useful_Fu...IsPlayerInArea
i believe this is what you want
https://sampwiki.blast.hk/wiki/Useful_Fu...IsPlayerInArea
i believe this is what you want
pawn Код:
forward isPlayerInArea();
pawn Код:
public OnGameModeInit()
{
SetTimer("isPlayerInArea",1000, 1);
return 1;
}
pawn Код:
public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
if (X <= 1489.5120 && X >= 1467.5144 && Y <= -1680.2880 && Y >= -1715.6841) // Biggest x, Smallest x, Biggest y, Smallest y
{
GameTextForPlayer(i, "~w~You In An Area", 3000, 5);
//SendClientMessage(playerid,COLOR," Be aware ! GANG ZONE ! stop! don't go further !");
}
}
}