Dynamic Area
#2

Hi Ph0eniX,

You can do
Код:
new isInZone[MAX_PLAYERS];
On the top of your script. Then add isInZone[playerid] = 0;[/code] to OnPlayerConnect and OnPlayerDisconnect. 0 means He is not in the zone.

Then when you want to do
Код:
CMD: enterzone(playerid, params[]);
{
    isInZone[playerid] = 1; 
    return 1;
}
And
Код:
CMD:leavezone(playerid, params[]);
{
   isInZone[playerid] = 0;
   return 1;
}
Describing this whole thing would be REALLY long, so try mess around with that.

Hope I could help.
Reply


Messages In This Thread
Dynamic Area - by Ph0eniX - 22.01.2014, 21:56
Re: Dynamic Area - by Excelize - 23.01.2014, 00:53
Re: Dynamic Area - by Hoborific - 23.01.2014, 02:54
Re: Dynamic Area - by Ph0eniX - 23.01.2014, 13:35
Re: Dynamic Area - by Ace155 - 23.01.2014, 14:37
Re: Dynamic Area - by Ph0eniX - 23.01.2014, 15:20

Forum Jump:


Users browsing this thread: 2 Guest(s)