02.11.2018, 14:21
You must save the first pair of coordinates in a global array, or a PVar. In this case I'd prefer a PVar since only admins use this command probably, and in that case a global array would be 99% unused most of the time.
In the first step you can save the X and Y coord into a PVar like this:
In the second step you can get the coords with GetPVarFloat:
And use the coords from GetPlayerPos for MaxX and MaxY.
Z is not needed in most cases, but if you need it you can easily add that too.
Hope I got you right.
In the first step you can save the X and Y coord into a PVar like this:
Code:
SetPVarFloat(playerid, "ZoneCreateMinX", xc); SetPVarFloat(playerid, "ZoneCreateMinY", yc);
Code:
minx = GetPVarFloat(playerid, "ZoneCreateMinX"); miny = GetPVarFloat(playerid, "ZoneCreateMinY");
Z is not needed in most cases, but if you need it you can easily add that too.
Hope I got you right.

