Guest User

config.cpp

a guest
Sep 9th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. /*
  2. Author: Maverick Applications
  3. Desc: Altis Life Shipwreck
  4. */
  5.  
  6. //Customize your settings to fit your server setup!
  7. class Maverick_Shipwrecks {
  8.  
  9. //How often (in seconds) should a shipwreck spawn, if no wreck is on the map?
  10. ShipwreckInterval = 1200; //1800 = 30min
  11.  
  12. //Define the possible locations for your shipwrecks.
  13. //getPosATL format -> Get the position via: diag_log(getPosATL player) -> replace the [] with {}
  14. Positions[] = {
  15. {18828,22067,-135.462},
  16. {14943, 14790, -58.3485},
  17. {9392, 10091, -29.2749},
  18. {3478, 16902, -64.3858},
  19. {22920, 15064, -53.4995},
  20. {28060, 24289, -36.764},
  21. {3816, 9880, -12.4705}
  22. };
  23.  
  24. //Define the radius, in which the wreck randomly spawns around the given center position
  25. Radius = 250;
  26.  
  27. //Define the possible sets of virtual items the user can loot from the wreck.
  28. ShipLoot[] = {
  29. //{ { "itemname1", amount }, { "itemname2", amount }, { "itemname3", amount } }
  30. { { "lockpick", 5 }, { { "toolkit", 5 } },
  31. { { "cocaine_processed", 12 } },
  32. { { "goldbar", 3 } },
  33. { { "blastingcharge", 1 } },
  34. { { "diamond_cut", 50 } }
  35. };
  36.  
  37. //What shall be displayed as text to gather the items from the ship? (The text of the addAction ingame)
  38. ShipLootText = "Récupérez le butin",
  39.  
  40. //The message when the user has got all the loot successfully.
  41. ShipLootSuccess = "Vous avez réussi à récupérer le butin de l'épave !",
  42.  
  43. //The message in case something fails, or the user can not carry all the items.
  44. ShipLootFail = "Vous ne pouvez pas porter tout le butin. Faites d'abord de la place !",
  45.  
  46. //Define the message, that should appear when a shipwreck spawns (broadcasted to all clients).
  47. SpawnMSG = "EPAVE\n\nUn navire coulé a été localisé ! Il peut contenir des éléments importants et il a été marqué sur votre carte !",
  48.  
  49. //Define the message, that should appear when a shipwreck disappears after a user looted it (broadcasted to all clients).
  50. DeleteMSG = "EPAVE\n\nLe navire a été pillé et a disparu !"
  51. };
Advertisement
Add Comment
Please, Sign In to add comment