12.08.2012, 14:08
See look
public OnGameModeInit()
{
new HostCommand[128];
// Change the hostname
format(HostCommand, 128, "hostname %s", GameModeName);
SendRconCommand(HostCommand);
SetGameModeText(GameModeName); // Set the Mode of the gamemode, which appears in the list of servers
GameModeInit_VehiclesPickups(); // Add all static vehicles and pickups when the server starts that are required (also load the houses)
GameModeInit_Classes(); // Add character models to the class-selection (without weapons)
Convoys_Init(); // Setup textdraws and default data for convoys
ShowPlayerMarkers(1); // Show players on the entire map (and on the radar)
ShowNameTags(1); // Show player names (and health) above their head
ManualVehicleEngineAndLights(); // Let the server control the vehicle's engine and lights
EnableStuntBonusForAll(0); // Disable stunt bonus for all players
DisableInteriorEnterExits(); // Removes all building-entrances in the game
UsePlayerPedAnims(); // Use CJ's walking animation
// Start the timer that will show timed messages every 2 minutes
SetTimer("Timer_TimedMessages", 1000 * 60 * 2, true);
// Start the timer that will show a random bonus mission for truckers every 5 minutes
SetTimer("ShowRandomBonusMission", 1000 * 60 * 5, true);
// Start the timer that checks the toll-gates
SetTimer("Toll", 1000, true);
// Fix the bugged houses (after fixing the houses, you can remove this line, as it's not needed anymore)
FixHouses();
// While the gamemode starts, start the global timer, and run it every second
SetTimer("GlobalTimer", 1000, true);
return 1;
}
public OnGameModeInit()
{
new HostCommand[128];
// Change the hostname
format(HostCommand, 128, "hostname %s", GameModeName);
SendRconCommand(HostCommand);
SetGameModeText(GameModeName); // Set the Mode of the gamemode, which appears in the list of servers
GameModeInit_VehiclesPickups(); // Add all static vehicles and pickups when the server starts that are required (also load the houses)
GameModeInit_Classes(); // Add character models to the class-selection (without weapons)
Convoys_Init(); // Setup textdraws and default data for convoys
ShowPlayerMarkers(1); // Show players on the entire map (and on the radar)
ShowNameTags(1); // Show player names (and health) above their head
ManualVehicleEngineAndLights(); // Let the server control the vehicle's engine and lights
EnableStuntBonusForAll(0); // Disable stunt bonus for all players
DisableInteriorEnterExits(); // Removes all building-entrances in the game
UsePlayerPedAnims(); // Use CJ's walking animation
// Start the timer that will show timed messages every 2 minutes
SetTimer("Timer_TimedMessages", 1000 * 60 * 2, true);
// Start the timer that will show a random bonus mission for truckers every 5 minutes
SetTimer("ShowRandomBonusMission", 1000 * 60 * 5, true);
// Start the timer that checks the toll-gates
SetTimer("Toll", 1000, true);
// Fix the bugged houses (after fixing the houses, you can remove this line, as it's not needed anymore)
FixHouses();
// While the gamemode starts, start the global timer, and run it every second
SetTimer("GlobalTimer", 1000, true);
return 1;
}