Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include maps\mp\_utility;
- #include common_scripts\utility;
- #include maps\mp\gametypes\_hud_util;
- #include maps\mp\gametypes\_hud_message;
- init()
- {
- thread onplayerconnect();
- level.mapRotation = [];
- createMapSelection();
- thread mapRotate();
- }
- onplayerconnect()
- {
- while(true)
- {
- level waittill("connecting", player);
- player thread onplayerspawned();
- player thread showConnectMessage();
- }
- }
- onplayerspawned()
- {
- self endon( "disconnect" );
- displayMessage = true;
- while(true)
- {
- self waittill( "spawned_player" );
- }
- }
- showConnectMessage()
- {
- self endon( "disconnect" );
- self waittill( "spawned_player" );
- self iprintln("^1Bot Map Rotation^7: ^4Loaded");
- }
- createMapSelection()
- {
- level.mapRotation[0] = "mp_la";
- level.mapRotation[1] = "mp_carrier";
- level.mapRotation[2] = "mp_dockside";
- level.mapRotation[3] = "mp_drone";
- level.mapRotation[4] = "mp_express";
- level.mapRotation[5] = "mp_meltdown";
- level.mapRotation[6] = "mp_overflow";
- level.mapRotation[7] = "mp_nightclub";
- level.mapRotation[8] = "mp_raid";
- level.mapRotation[9] = "mp_slums";
- level.mapRotation[10] = "mp_village";
- level.mapRotation[11] = "mp_turbine";
- level.mapRotation[12] = "mp_socotra";
- level.mapRotation[13] = "mp_nuketown_2020";
- level.mapRotation[14] = "mp_hijacked";
- }
- mapRotate()
- {
- level waittill("game_ended");
- i = randomIntRange(0, 14);
- map(level.mapRotation[i]);
- self iprintln("New map loading: " + level.mapRotation[i]);
- wait 5;
- map_restart(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment