gonzalo293

Fs de teleport con Vehiculo ZCMD

Dec 31st, 2015
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.14 KB | None | 0 0
  1. /*
  2. TELEPORTS CON VEHICULO, ESPECIALIDADO PARA SERVIDORES STUNT
  3.  
  4. ECHO POR GONZALO 293 BAJO LICENCIA DE CREATIVE COMMONS
  5.  
  6. ESPERO QUE LO DISFRUTEN Y QUE TENGAN UN BUEN 2016 :D
  7.  
  8. NO ROBAR CREDITOS POR FAVOR!
  9.  
  10. */
  11.  
  12. #include <a_samp>
  13. #include <zcmd>
  14.  
  15. #if defined FILTERSCRIPT
  16.  
  17. #else
  18.  
  19. main()
  20. {
  21.     print("\n--------------------------------------");
  22.     print(">> SISTEMA DE TELEPORTS CON VEHICULOS <<");
  23.     print("-------------GONZALO 293--------------\n");
  24. }
  25.  
  26. #endif
  27.  
  28. //STOCK
  29. stock TeleportConVehiculo(playerid, Float:x,Float:y,Float:z)
  30. {
  31. new tipoauto = GetPlayerVehicleID(playerid);
  32. new pasajeros=GetPlayerState(playerid);
  33. if(pasajeros!=PLAYER_STATE_DRIVER)
  34. {
  35. SetPlayerPos(playerid,x,y,z);
  36. }
  37. else if(IsPlayerInVehicle(playerid, tipoauto) == 1)
  38. {
  39. SetVehiclePos(tipoauto,x,y,z);
  40. }
  41. else
  42. {
  43. SetPlayerPos(playerid,x,y,z);
  44. }
  45. }
  46.  
  47. CMD:mansionlv(playerid, params[])
  48. {
  49. TeleportConVehiculo(playerid,1551.588256, 2772.915527, 10.820312);
  50. return 1;
  51. }
  52. /*
  53. COMMAND:mansionlv(playerid, params[])
  54. {
  55. TeleportConVehiculo(playerid,1551.588256, 2772.915527, 10.820312);
  56. return 1;
  57. }
  58.  
  59. Pueden elegir la manera mas comoda, solo descomentando esto!
  60. */
Advertisement
Add Comment
Please, Sign In to add comment