[HELP] zone and timers
#8

Код:
new IsInZone[MAX_PLAYERS];
forward provazone(playerid);
public provazone(playerid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= 1331.278 && X <= 2207.118 && Y >= -2755.979 && Y <= -2125.373 && IsInZone[playerid] == 0)
{
IsInZone[playerid] = 1;
SendClientMessage(playerid,COLOR_RED,"Welcome to the stunt zone!");
}
return 1;
}
should work also add a check to see if the player isnt in the zone sos you could set IsInZone to 0 again
Reply


Messages In This Thread
[HELP] zone and timers - by iJumbo - 06.07.2010, 08:46
Re: [HELP] zone and timers - by ToPhrESH - 06.07.2010, 08:51
Re: [HELP] zone and timers - by iJumbo - 06.07.2010, 09:04
Re: [HELP] zone and timers - by Matthias_ - 06.07.2010, 09:04
Re: [HELP] zone and timers - by iJumbo - 06.07.2010, 09:06
Re: [HELP] zone and timers - by CAR - 06.07.2010, 10:34
Re: [HELP] zone and timers - by iJumbo - 06.07.2010, 14:08
Re: [HELP] zone and timers - by Cameltoe - 06.07.2010, 14:21
Re: [HELP] zone and timers - by iJumbo - 06.07.2010, 14:27
Re: [HELP] zone and timers - by Cameltoe - 06.07.2010, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)