Guest User

ExemploInclude

a guest
Jul 12th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.37 KB | None | 0 0
  1. forward CarregarMotosLV();
  2. forward CarregarCarrosLV();
  3. forward CarregarPickupsLV();
  4. forward CarregarObjetosLV();
  5.  
  6. public CarregarMotosLV()
  7. {
  8.     AddStaticVehicle(461,1782.3700,-1861.3677,13.1650,3.1816,6,6); // moto 1
  9.     AddStaticVehicle(461,1972.9346,1289.0974,10.8203,3.1816,6,6); // moto 2
  10.     AddStaticVehicle(461,1981.4973,1289.8873,10.8203,3.1816,6,6); // moto 3
  11.     AddStaticVehicle(461,1994.8837,1289.1447,10.8130,3.1816,6,6); // moto 4
  12.     AddStaticVehicle(461,2006.9523,1287.1544,10.8203,3.1816,6,6); // moto 5
  13.     return 1;
  14. }
  15.  
  16. public CarregarCarrosLV()
  17. {
  18.     //carros aki
  19.     return 1;
  20. }
  21.  
  22. public CarregarPickupsLV()
  23. {
  24.     //pickups aki
  25.     return 1;
  26. }
  27.  
  28. public CarregarObjetosLV()
  29. {
  30.     //objetos aki
  31.     return 1;
  32. }
  33.  
  34. /*
  35. e assim vai, vocĂȘ vai criando suas publics conforme o que vai colocar e depois so vocĂȘ
  36. definir no topo do gm #include <nome_da_inc>
  37. e chamar ela em alguma callback por exemplo
  38. OBS:Salvar include na pasta pawno\include do servidor e o formato .inc
  39. so colocar em salvar como e no nome de arquivo de salvamento colocar nome_da_include.inc
  40.  
  41. public OnGameModeInit()
  42. {
  43.     // Don't use these lines if it's a filterscript
  44.     SetGameModeText("Extreme Action RolePlay");
  45.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  46.     CarregarMotosLV(); //aki ele vai carregar todas as motos da callback CarregarMotosLV da sua include
  47.     return 1;
  48. }
  49. */
Advertisement
Add Comment
Please, Sign In to add comment