Spawn
#1

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
    
{0TEAM_TERRORIST7748.2246, -2561.867218.4057254.3921},
    {
0TEAM_TERRORIST7745.2607, -2572.027818.4135308.5993},
    {
0TEAM_TERRORIST7741.2280, -2566.790318.4135268.4923},
    {
0TEAM_TERRORIST7741.3320, -2558.592818.4081245.6188},
    {
0TEAM_COUNTER7692.6514, -2643.591118.4302270.4191},
    {
0TEAM_COUNTER7692.4092, -2656.409218.3768269.4791},
    {
0TEAM_COUNTER7701.4702, -2659.552018.3846311.1528},
    {
0TEAM_COUNTER7706.7485, -2653.481718.3768287.0259}
};
new 
game_id 0// de_dust
// OnGameModeInit
game_id random(sizeof(GameInfo)); 
So I have an array here, I would like to determine and set the players position according on the array. Like for EG, The map is de_dust and the only positions that will be randomized are those arrays/records which is set for that game only.

How can I do that?
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: 2 Guest(s)