Check if point is occupied
#3

Quote:
Originally Posted by v1k1nG
View Post
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 
0MAX_SPAWN_POINTSi++){
    if(!
IsSpawnPointUsed[i]){
        
SetSpawnInfo(playeridplayerteamplayerskinwcrm_Xwcrm_Ywcrm_Zweaponammoweaponammoweaponammo);
        
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..?
Reply


Messages In This Thread
Check if point is occupied - by Viggo - 03.04.2019, 17:17
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 17:47
Re: Check if point is occupied - by Viggo - 03.04.2019, 17:49
Re: Check if point is occupied - by Private200 - 03.04.2019, 17:54
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 17:55
Re: Check if point is occupied - by Viggo - 03.04.2019, 17:59
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 18:00
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:01
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 18:02
Re: Check if point is occupied - by RedFusion - 03.04.2019, 18:03
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:03
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 18:06
Re: Check if point is occupied - by Private200 - 03.04.2019, 18:08
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:08
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:13
Re: Check if point is occupied - by CONTROLA - 04.04.2019, 08:57
Re: Check if point is occupied - by Viggo - 04.04.2019, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)