Quote:
Originally Posted by v1k1nG
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;
}
}
|
I've used this idea before, but when players will die again and they will respawn to another random point. Like in 10 minutes, all random points will be "used", and players won't be able to respawn anymore.
So..?