Advertisement
Guest User

k_ls

a guest
Oct 31st, 2011
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.06 KB | None | 0 0
  1. /******************************************************************************/
  2. /*                      * K - Loading Screen *                                */
  3. /*                      *       1.0          *                                */
  4. /*                      * Kavinsky Script    *                                */
  5. /******************************************************************************/
  6.  
  7. #include <a_samp>
  8. #include <PC>
  9.  
  10. new
  11.     Text:Sprite0;
  12.  
  13. new Texture[][] ={"LOADSUK:loadsc14","LOADSUK:loadsc13","LOADSUK:loadsc12","LOADSUK:loadsc11","LOADSUK:loadsc10","LOADSUK:loadsc9","LOADSUK:loadsc8","LOADSUK:loadsc7","LOADSUK:loadsc6","LOADSUK:loadsc5","LOADSUK:loadsc4","LOADSUK:loadsc3","LOADSUK:loadsc2","LOADSUK:loadsc1"};
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     print("__________________________________________");
  18.     print("                                          ");
  19.     print(" Debug Message:                           ");
  20.     print(" K - Loading Screen by Kavinsky Script 1.0");
  21.     print(" Successfully loaded!                     ");
  22.     print("                                          ");
  23.     print("__________________________________________");
  24.    
  25.     new TT = random(sizeof(Texture));
  26.     Sprite0 = TextDrawCreate(-0.500, -0.500,Texture[TT]);
  27.     TextDrawFont(Sprite0, 4);
  28.     TextDrawTextSize(Sprite0, 647.500, 457.000);
  29.     TextDrawColor(Sprite0, -1);
  30.    
  31.     PCaricamentoInit();
  32.     return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37.     return 1;
  38. }
  39.  
  40. public OnPlayerConnect(playerid)
  41. {
  42.     return 1;
  43. }
  44.  
  45. public OnPlayerDisconnect(playerid, reason)
  46. {
  47.     return 1;
  48. }
  49.  
  50. public OnPlayerSpawn(playerid)
  51. {
  52.     SetPlayerInterior(playerid,0);
  53.     SetTimer("ShowTD",500,0);
  54.     TogglePlayerControllable(playerid,0);
  55.     return 1;
  56. }
  57.  
  58. forward ShowTD(playerid);
  59. public ShowTD(playerid)
  60. {
  61.     TextDrawShowForPlayer(playerid,Sprite0);
  62.     SetTimer("HideTD",5000,0);
  63.     CaricamentoForPlayer(playerid,23,-1);
  64.     return 1;
  65. }
  66.  
  67. forward HideTD(playerid);
  68. public HideTD(playerid)
  69. {
  70.     TextDrawHideForPlayer(playerid,Sprite0);
  71.     TogglePlayerControllable(playerid,1);
  72.     return 1;
  73. }
  74.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement