Text shown when enering a teritory
#3

https://sampwiki.blast.hk/wiki/Areacheck
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 !");

        }
    }
}
Reply


Messages In This Thread
Text shown when enering a teritory - by mdaniel - 02.07.2009, 15:38
Re: Text shown when enering a teritory - by mdaniel - 07.07.2009, 21:55
Re: Text shown when enering a teritory - by happyface - 07.07.2009, 23:04
Re: Text shown when enering a teritory - by mdaniel - 08.07.2009, 09:41
Re: Text shown when enering a teritory - by mdaniel - 08.07.2009, 11:16
Re: Text shown when enering a teritory - by mdaniel - 08.07.2009, 12:59
Re: Text shown when enering a teritory - by Jakku - 21.07.2009, 18:41
Re: Text shown when enering a teritory - by MadeMan - 21.07.2009, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)