Guest User

boat dolfin

a guest
Aug 24th, 2013
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3. #include <a_players>
  4.  
  5.  
  6. #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  7. #if defined FILTERSCRIPT
  8.  
  9. #pragma tabsize 0
  10. new ogg,delf;
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Br0nXz_ Dolphin FS Loaded.");
  15. print("--------------------------------------\n");
  16.  
  17. ogg = CreateObject(1607, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //dolphin
  18. delf = 446;
  19. return 1;
  20. }
  21.  
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24. if(strcmp("/dolphin",cmdtext,true,10) == 0)
  25. {
  26. new Float:x, Float:y, Float:z, Float:a;
  27. GetPlayerPos(playerid, x, y, z);
  28. GetPlayerFacingAngle(playerid, a);
  29. delf = CreateVehicle(446, x +2, y, z+2, a, -1, -1, 60);
  30. AttachObjectToVehicle(ogg, delf, 0.0, 0.0, 0.4, 0.0, 0.0, 0.0); //-180
  31. LinkVehicleToInterior(delf, 6);
  32. PutPlayerInVehicle(playerid, delf, 0);
  33. return 1;
  34. }
  35.  
  36. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  37. {
  38. if(newkeys == 2)
  39. {
  40. if(IsPlayerInAnyVehicle(playerid))
  41. {
  42. {
  43. PlayAudioStreamForPlayer(playerid,"http://www.ilvelierodeidelfini.it/audio/Globicefalo.mp3");
  44. }
  45. }
  46. return 1;
  47. }
  48. #endif
Advertisement
Add Comment
Please, Sign In to add comment