Guest User

Script

a guest
Mar 7th, 2010
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.79 KB | None | 0 0
  1. #include <a_samp>
  2. #include <audio>
  3.  
  4. main()
  5. {
  6.     print("\n");
  7.     print(" Gustavo Borba - prjZombie.");
  8.     print("\n");
  9. }
  10.  
  11. public OnGameModeInit()
  12. {
  13.     // Audio
  14.     Audio_SetPack("default_pack", true);
  15.     SetTimer("randAudio", 10000, true);
  16.  
  17.     SetWorldTime(24);
  18.     SetWeather(9);
  19.     SendRconCommand("reloadfs Z");
  20.     SetGameModeText(" ");
  21.     AddPlayerClass(0, 1673.3588867188, -1376.3424072266, 84.062004089355, 0.0, 0, 0, 0, 0, 0, 0);
  22.    
  23.     CreateObject(987, 1670.3231201172, -1373.3150634766, 84.552742004395, 0.000000, 0.000000, 0.000000); //
  24.     CreateObject(987, 1670.5426025391, -1397.2218017578, 84.552742004395, 0.000000, 0.000000, 90.72998046875); //
  25.     CreateObject(987, 1670.4002685547, -1385.3046875, 84.527740478516, 0.000000, 0.000000, 90.7138671875); //
  26.     CreateObject(987, 1670.701171875, -1409.1712646484, 84.552742004395, 0.000000, 0.000000, 90.72509765625); //
  27.     CreateObject(987, 1670.8291015625, -1421.1492919922, 84.552742004395, 0.000000, 0.000000, 90.72509765625); //
  28.     CreateObject(987, 1670.9090576172, -1428.0765380859, 84.552742004395, 0.000000, 0.000000, 90.72509765625); //
  29.     CreateObject(987, 1682.3245849609, -1373.314453125, 84.552742004395, 0.000000, 0.000000, 0.000000); //
  30.     CreateObject(987, 1689.7742919922, -1373.3367919922, 84.552742004395, 0.000000, 0.000000, 0.000000); //
  31.     CreateObject(987, 1701.822265625, -1373.3796386719, 84.556243896484, 0.000000, 0.000000, 270.70861816406); //
  32.     CreateObject(987, 1701.9453125, -1385.37890625, 84.556243896484, 0.000000, 0.000000, 270.703125); //
  33.     CreateObject(987, 1702.0661621094, -1397.3752441406, 84.556243896484, 0.000000, 0.000000, 270.703125); //
  34.     CreateObject(987, 1702.220703125, -1409.3472900391, 84.556243896484, 0.000000, 0.000000, 270.703125); //
  35.     CreateObject(987, 1702.2873535156, -1415.8466796875, 84.556243896484, 0.000000, 0.000000, 270.703125); //
  36.     CreateObject(987, 1682.9403076172, -1428.01953125, 84.560943603516, 0.000000, 0.000000, 180.54040527344); //
  37.     CreateObject(987, 1694.8898925781, -1427.8969726563, 84.560943603516, 0.000000, 0.000000, 180.53833007813); //
  38.     CreateObject(987, 1702.3901367188, -1427.8828125, 84.560943603516, 0.000000, 0.000000, 180.53833007813); //
  39.     return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44.     return 1;
  45. }
  46. // Audio Function
  47. forward randAudio();
  48. public randAudio() {
  49.     new randomAudio = random(8);
  50.     for(new i=0; i<MAX_PLAYERS; i++) {
  51.         switch(randomAudio) {
  52.                 case 0: Audio_Play(i, 1, false, false, false);
  53.                 case 1: Audio_Play(i, 2, false, false, false);
  54.                 case 2: Audio_Play(i, 3, false, false, false);
  55.                 case 3: Audio_Play(i, 4, false, false, false);
  56.         }
  57.     }
  58.     return true;
  59. }
  60.  
  61. // Audio Callbacks
  62. public Audio_OnClientConnect(playerid)
  63. {
  64.     // Transfer the audio pack when the player connects
  65.     Audio_TransferPack(playerid);
  66. }
  67.  
  68. public Audio_OnSetPack(audiopack[])
  69. {
  70.     for (new i = 0; i < MAX_PLAYERS; i++)
  71.     {
  72.         // Transfer the audio pack to all players when it is set
  73.         Audio_TransferPack(i);
  74.     }
  75.     return 1;
  76. }
  77.  
  78. public OnPlayerRequestClass(playerid, classid)
  79. {
  80.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  81.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  82.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  83.     return 1;
  84. }
  85.  
  86. public OnPlayerConnect(playerid)
  87. {
  88.     return 1;
  89. }
  90.  
  91. public OnPlayerDisconnect(playerid, reason)
  92. {
  93.     return 1;
  94. }
  95.  
  96. public OnPlayerSpawn(playerid)
  97. {
  98.     if(!IsPlayerNPC(playerid)) {
  99.         GivePlayerWeapon(playerid, 24, 100);
  100.         GivePlayerWeapon(playerid, 25, 30);
  101.     }
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerDeath(playerid, killerid, reason)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnVehicleSpawn(vehicleid)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnVehicleDeath(vehicleid, killerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerText(playerid, text[])
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerCommandText(playerid, cmdtext[])
  126. {
  127.     return 0;
  128. }
Advertisement
Add Comment
Please, Sign In to add comment