natesmithzombies

credits_func

Feb 11th, 2017
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function intro_credits()
  2. {
  3. thread creat_simple_intro_hud( "Thank you for playing Fabrik Der Untoten: Beta Version 1.2", 50, 100, 3, 5 );
  4. thread creat_simple_intro_hud( "Mapping by Madgaz Gaming", 50, 75, 2, 5 );
  5. thread creat_simple_intro_hud( "Scripting by NateSmithZombies", 50, 50, 2, 5 );
  6. }
  7.  
  8. function creat_simple_intro_hud( text, align_x, align_y, font_scale, fade_time )
  9. {
  10. hud = NewHudElem();
  11. hud.foreground = true;
  12. hud.fontScale = font_scale;
  13. hud.sort = 1;
  14. hud.hidewheninmenu = false;
  15. hud.alignX = "left";
  16. hud.alignY = "bottom";
  17. hud.horzAlign = "left";
  18. hud.vertAlign = "bottom";
  19. hud.x = align_x;
  20. hud.y = hud.y - align_y;
  21. hud.alpha = 1;
  22. hud SetText( text );
  23. wait( 8 );
  24. hud fadeOverTime( fade_time );
  25. hud.alpha = 0;
  26. wait( fade_time );
  27. hud Destroy();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment