Spawn
#2

You can use a way where you define the kinds and add a parameter called kind in your ENUM_SPAWN,

example:
PHP Code:
#define TEAM_DUST 1
#define TEAM_... 2
... 
then
PHP Code:
enum ENUM_SPAWN 

    
spawn_KInD,
    
spawn_gameID
    
spawn_gameTeam
    
Float:spawn_X
    
Float:spawn_Y
    
Float:spawn_Z
    
Float:spawn_A

and later
PHP Code:
new SpawnInfo[][ENUM_SPAWN] = 

    
// De_Dust 
    
{TEAM_DUST0TEAM_TERRORIST7748.2246, -2561.867218.4057254.3921},
    ....
    {
TEAM_..., 0TEAM_TERRORIST7748.2246, -2561.867218.4057254.3921},
    ....
}; 
and later will be able to get spawn area kind by an if statement, ex:
PHP Code:
if(SpawnInfo[x][spawn_KInD] == TEAM_DUST// this spawn area belongs to dust!
{

Reply


Messages In This Thread
Spawn - by JaKe Elite - 28.09.2017, 11:47
Re: Spawn - by jlalt - 28.09.2017, 12:10
Re: Spawn - by JaKe Elite - 28.09.2017, 12:42
Re: Spawn - by Misiur - 28.09.2017, 12:46
Re: Spawn - by JaKe Elite - 28.09.2017, 12:48
Re: Spawn - by JaKe Elite - 28.09.2017, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)