14.08.2011, 16:33
Hello!
Trying to give a player a message when enter a zone, but no message appears.
i have tried this from wiki
And i also have made the zones
Also i want the message appears if you not are in right team for the right zone, something like this
Trying to give a player a message when enter a zone, but no message appears.
i have tried this from wiki
pawn Код:
public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= -2966.18 && X >= -910.8743 && Y <= -724.0283 && Y >= 1576.513)
{
GameTextForPlayer(i,"~r~Warning: you are entering hostile airspace!",3500,5);
}
}
return 1;
}
pawn Код:
new ZoneThunderbirds;
ZoneThunderbirds = GangZoneCreate(-2966.18, -910.8743, -724.0283, 1576.513);
pawn Код:
if(GetPlayerTeam(playerid) >3)