03.04.2019, 17:47
This could be a idea.
PHP Code:
#define MAX_SPAWN_POINTS 50 // Your value
enum RandomPoints
{
Float:wcrm_X[MAX_SPAWN_POINTS],
Float:wcrm_Y[MAX_SPAWN_POINTS],
Float:wcrm_Z[MAX_SPAWN_POINTS],
Float:wcrm_RZ[MAX_SPAWN_POINTS],
bool:IsSpawnPointUsed[MAX_SPAWN_POINTS]
};
for(new i = 0; i < MAX_SPAWN_POINTS; i++){
if(!IsSpawnPointUsed[i]){
SetSpawnInfo(playerid, playerteam, playerskin, wcrm_X, wcrm_Y, wcrm_Z, weapon, ammo, weapon, ammo, weapon, ammo);
IsSPawnPointUsed[i] = true;
}
}