Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This addon is made by Black Tea a.k.a rebel1324 in FP.
- MAX_ROUNDS = 3
- local CurRound = 0;
- function ROUND_REACHED()
- -- Add some event when Current Round Reach the Max Rounds.
- -- If you have map vote thing, add it.
- -- If you need to change specific map, just add here.
- ROUND_MESSEGE( "Max Round reached. Calling Round End Event." )
- end
- function ROUND_MULTIPLAYER()
- if (#player.GetAll() == 2) then
- ROUND_MESSEGE( "Starting New Round in few seconds." )
- timer.Simple(8, function()
- ROUND_RESTART();
- end);
- end;
- end
- --hook.Add("PlayerInitialSpawn", "ROUND_MP", ROUND_MULTIPLAYER)
- function ROUND_END()
- ROUND_MESSEGE( "New round starting. Prepare." )
- timer.Simple(5,ROUND_RESTART)
- end
- function ROUND_RESTART()
- -- Add some event when new round start.
- for k, v in ipairs(player.GetAll()) do
- v:Spawn()
- end;
- if (MAX_ROUNDS == CurRound) then
- ROUND_REACHED()
- end;
- CurRound = CurRound + 1;
- end
- function ROUND_MESSEGE( say )
- for k, v in ipairs(player.GetAll()) do
- v:PrintMessage(HUD_PRINTTALK, tostring(say));
- end;
- end
Add Comment
Please, Sign In to add comment