22.02.2012, 17:03
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:
Gamemode:
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;
}
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;
}