28.09.2017, 12:10
You can use a way where you define the kinds and add a parameter called kind in your ENUM_SPAWN,
example:
then
and later
and later will be able to get spawn area kind by an if statement, ex:
example:
PHP Code:
#define TEAM_DUST 1
#define TEAM_... 2
...
PHP Code:
enum ENUM_SPAWN
{
spawn_KInD,
spawn_gameID,
spawn_gameTeam,
Float:spawn_X,
Float:spawn_Y,
Float:spawn_Z,
Float:spawn_A,
}
PHP Code:
new SpawnInfo[][ENUM_SPAWN] =
{
// De_Dust
{TEAM_DUST, 0, TEAM_TERRORIST, 7748.2246, -2561.8672, 18.4057, 254.3921},
....
{TEAM_..., 0, TEAM_TERRORIST, 7748.2246, -2561.8672, 18.4057, 254.3921},
....
};
PHP Code:
if(SpawnInfo[x][spawn_KInD] == TEAM_DUST) // this spawn area belongs to dust!
{
}