22.09.2018, 19:27
How would you spawn players in a random point, within a zone borders? I am trying to figure it out..
I am using this function to get if player is in zone:
I am using this function to get if player is in zone:
PHP код:
bool: IsPlayerInZone(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy) {
GetPlayerPos(playerid, P[playerid][px], P[playerid][py], P[playerid][pz]);
if (P[playerid][px] > minx && P[playerid][px] < maxx && P[playerid][py] > miny && P[playerid][py] < maxy) return true;
return false;
}