Check if point is occupied
#2

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;
    }    

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)