28.09.2017, 11:47
PHP Code:
enum ENUM_GAME
{
gameID,
gameName[20],
gameType
};
enum ENUM_SPAWN
{
spawn_gameID,
spawn_gameTeam,
Float:spawn_X,
Float:spawn_Y,
Float:spawn_Z,
Float:spawn_A,
}
////////////////////////////////////////////////////////////////////////////////
new GameInfo[][ENUM_GAME] = {
{0, "de_dust", GAME_BOMBING}
};
new SpawnInfo[][ENUM_SPAWN] =
{
// De_Dust
{0, TEAM_TERRORIST, 7748.2246, -2561.8672, 18.4057, 254.3921},
{0, TEAM_TERRORIST, 7745.2607, -2572.0278, 18.4135, 308.5993},
{0, TEAM_TERRORIST, 7741.2280, -2566.7903, 18.4135, 268.4923},
{0, TEAM_TERRORIST, 7741.3320, -2558.5928, 18.4081, 245.6188},
{0, TEAM_COUNTER, 7692.6514, -2643.5911, 18.4302, 270.4191},
{0, TEAM_COUNTER, 7692.4092, -2656.4092, 18.3768, 269.4791},
{0, TEAM_COUNTER, 7701.4702, -2659.5520, 18.3846, 311.1528},
{0, TEAM_COUNTER, 7706.7485, -2653.4817, 18.3768, 287.0259}
};
new game_id = 0; // de_dust
// OnGameModeInit
game_id = random(sizeof(GameInfo));
How can I do that?