Include problem?
#10

I find it very useless, because it's a few variables which can be at the top of your gamemode. Anyway, in order to make it work the way you want, you should do this;

Include:
pawn Код:
new
    teamSkin[ 2 ],
    Float:teamSpawn[ 2 ][ 4 ],
    teamWeapon[ 2 ][ 3 ],
    teamWeaponAmmo[ 2 ][ 3 ]
;

OnGameMissionStart()
{
    SetGameModeText( "Lolz" );

    teamSkin[ 0 ] = 29;
    teamSkin[ 1 ] = 280;

    teamSpawn[ 0 ][ 0 ] = 1361.3763;
    teamSpawn[ 0 ][ 1 ] = -1651.0247;
    teamSpawn[ 0 ][ 2 ] = 13.3828;
    teamSpawn[ 0 ][ 3 ] = 276.9998;

    teamSpawn[ 1 ][ 0 ] = 1580.1824;
    teamSpawn[ 1 ][ 1 ] = -1635.0011;
    teamSpawn[ 1 ][ 2 ] = 13.5612;
    teamSpawn[ 1 ][ 3 ] = 96.8315;

    teamWeapon[ 0 ][ 0 ] = 5;
    teamWeapon[ 0 ][ 1 ] = 24;
    teamWeapon[ 0 ][ 2 ] = 30;

    teamWeapon[ 1 ][ 0 ] = 3;
    teamWeapon[ 1 ][ 1 ] = 24;
    teamWeapon[ 1 ][ 2 ] = 31;

    teamWeaponAmmo[ 0 ][ 0 ] = 1;
    teamWeaponAmmo[ 0 ][ 1 ] = 250;
    teamWeaponAmmo[ 0 ][ 2 ] = 500;

    teamWeaponAmmo[ 1 ][ 0 ] = 1;
    teamWeaponAmmo[ 1 ][ 1 ] = 250;
    teamWeaponAmmo[ 1 ][ 2 ] = 500;

    return 1;
}
Gamemode:
pawn Код:
public OnGameModeInit()
{
    OnGameMissionStart();

    AddPlayerClass( teamSkin[ 0 ], teamSpawn[ 0 ][ 0 ], teamSpawn[ 0 ][ 1 ], teamSpawn[ 0 ][ 2 ], teamSpawn[ 0 ][ 3 ], teamWeapon[ 0 ][ 0 ], teamWeaponAmmo[ 0 ][ 0 ], teamWeapon[ 0 ][ 1 ], teamWeaponAmmo[ 0 ][ 1 ], teamWeapon[ 0 ][ 2 ], teamWeaponAmmo[ 0 ][ 2 ] );
    AddPlayerClass( teamSkin[ 1 ], teamSpawn[ 1 ][ 0 ], teamSpawn[ 1 ][ 1 ], teamSpawn[ 1 ][ 2 ], teamSpawn[ 1 ][ 3 ], teamWeapon[ 1 ][ 0 ], teamWeaponAmmo[ 1 ][ 0 ], teamWeapon[ 1 ][ 1 ], teamWeaponAmmo[ 1 ][ 1 ], teamWeapon[ 1 ][ 2 ], teamWeaponAmmo[ 1 ][ 2 ] );

    return 1;
}
Reply


Messages In This Thread
Include problem? - by Steeve_Smith - 22.02.2012, 14:36
Re: Include problem? - by TheArcher - 22.02.2012, 15:43
Re: Include problem? - by niels44 - 22.02.2012, 15:45
Re: Include problem? - by Toreno - 22.02.2012, 15:49
Re : Include problem? - by Steeve_Smith - 22.02.2012, 16:01
Re: Include problem? - by Toreno - 22.02.2012, 16:11
Re : Include problem? - by Steeve_Smith - 22.02.2012, 16:22
Re: Include problem? - by Toreno - 22.02.2012, 16:27
Re : Re: Include problem? - by Steeve_Smith - 22.02.2012, 16:30
Re: Include problem? - by Toreno - 22.02.2012, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)