[Map] MAPS IN TRUCKING SERVERS
#10

// This callback gets called when the server initializes the gamemode
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;

}

THIS IS THE CODE OF GAMEMODEINIT WHERE CAN I KEEP I AM GETTING MANY ERRORS WHEN KEEPING UNDER THIS
Reply


Messages In This Thread
MAPS IN TRUCKING SERVERS - by Honey - 05.03.2014, 09:04
Re: MAPS IN TRUCKING SERVERS - by doreto - 05.03.2014, 09:08
Re: MAPS IN TRUCKING SERVERS - by KyleSta123 - 05.03.2014, 09:23
Re: MAPS IN TRUCKING SERVERS - by Honey - 05.03.2014, 09:36
Re: MAPS IN TRUCKING SERVERS - by Yves - 05.03.2014, 09:54
Re: MAPS IN TRUCKING SERVERS - by Honey - 05.03.2014, 10:01
Re: MAPS IN TRUCKING SERVERS - by Honey - 05.03.2014, 10:03
Re: MAPS IN TRUCKING SERVERS - by MattGregory - 05.03.2014, 10:04
Re: MAPS IN TRUCKING SERVERS - by Honey - 05.03.2014, 10:10
Re: MAPS IN TRUCKING SERVERS - by Honey - 06.03.2014, 03:27

Forum Jump:


Users browsing this thread: 3 Guest(s)