Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- TeleportPlayer("Intro_0");
- FadeOut(0);
- SetPlayerActive(false);
- SetSanityDrainDisabled(true);
- ShowPlayerCrossHairIcons(false);
- AddTimer("fadein", 3, "TimerIntroOutro");
- PlayMusic("in_motion.ogg", false, 1, 0, 1, true);
- }
- void TimerIntroOutro(string &in asTimer)
- {
- if(GetLocalVarInt("Intro") < 3) {
- if(asTimer == "fadein") {
- TeleportPlayer("Intro_" + GetLocalVarInt("Intro"));
- FadeIn(1);
- AddTimer("fadeout", 4, "TimerIntroOutro");
- }
- if(asTimer == "fadeout") {
- FadeOut(1);
- AddTimer("fadein", 1, "TimerIntroOutro");
- AddLocalVarInt("Intro", 1);
- }
- }
- else
- {
- TeleportPlayer("Spawn");
- FadeIn(2);
- SetPlayerActive(true);
- SetSanityDrainDisabled(false);
- ShowPlayerCrossHairIcons(true);
- PlayMusic("in_motion.ogg", false, 0.2, 1, 2, true);
- }
- if(asTimer == "outro") {
- StartCredits("in_motion.ogg", false, "Credits", "Ending", 3);
- }
- }
- void Exit(string &in asEntity)
- {
- AddTimer("outro", 0.01, "TimerIntroOutro");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement