Advertisement
Guest User

...

a guest
Sep 20th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. new PortaoDP;
  2. new DentroDP;
  3.  
  4. new Pedagio1;
  5. new Pedagio2;
  6.  
  7. new Pedagio3;
  8. new Pedagio4;
  9.  
  10.  
  11.  
  12.  
  13. public OnGameModeInit()
  14. {
  15. PortaoDP = CreateObject(980, 1551.61316, -1627.32190, 15.22380, 0.00000, 0.00000, 89.00000);
  16. DentroDP = CreateObject(19302, 248.00090, 75.85290, 1003.85260, 0.00000, 0.00000, 91.00000);
  17.  
  18. Pedagio1 = CreateObject(968, 67.83000, -1529.78003, 4.79000, 0.00000, 90.00000, 90.00000);
  19. Pedagio2 = CreateObject(968, 67.47000, -1537.43994, 4.79000, 0.00000, 90.00000, -90.00000);
  20.  
  21. Pedagio3 = CreateObject(968, -23.4061, -1342.9047, 10.7999, 0.0000, 90.0000, 131.0000);
  22. Pedagio4 = CreateObject(968, -5.8154, -1364.9047, 10.7999, 0.0000, 90.0000, 128.0000);
  23. return 1;
  24. }
  25.  
  26.  
  27.  
  28.  
  29. }
  30. forward Recriar_Portao_DP();
  31. public Recriar_Portao_DP() { CreateObject(980, 1551.61316, -1627.32190, 15.22380, 0.00000, 0.00000, 89.00000); } // Aqui criamos uma public para recriar o objeto.
  32.  
  33. forward Recriar_Portao_DP1();
  34. public Recriar_Portao_DP1() { CreateObject(19302, 248.00090, 75.85290, 1003.85260, 0.00000, 0.00000, 90.00000); }
  35.  
  36. forward Recriar_Portao_PD1();
  37. public Recriar_Portao_PD1() { CreateObject(968, 67.83000, -1529.78003, 4.79000, 0.00000, 90.00000, 90.00000); }
  38.  
  39. forward Recriar_Portao_PD2();
  40. public Recriar_Portao_PD2() { CreateObject(968, 67.47000, -1537.43994, 4.79000, 0.00000, 90.00000, -90.00000); }
  41.  
  42. forward Recriar_Portao_PD3();
  43. public Recriar_Portao_PD3() { CreateObject(968, -23.4061, -1342.9047, 10.7999, 0.0000, 90.0000, 131.0000); }
  44.  
  45. forward Recriar_Portao_PD4();
  46. public Recriar_Portao_PD4() { CreateObject(968, -5.8154, -1364.9047, 10.7999, 0.0000, 90.0000, 128.0000); }
  47. }
  48.  
  49.  
  50.  
  51.  
  52.  
  53. CMD:pagarpg1(playerid) {
  54.  
  55. if(IsPlayerInRangeOfPoint(playerid, 8.0, 67.83, -1529.78, 4.79)) {
  56. if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
  57. GivePlayerMoney(playerid, -100);
  58. if(IsValidObject(Pedagio1)) { DestroyObject(Pedagio1); SetTimer("Recriar_Portao_PD1", 2000, false); }
  59. }
  60. return true;
  61. }
  62. CMD:pagarpg2(playerid) {
  63.  
  64. if(IsPlayerInRangeOfPoint(playerid, 8.0, 67.47, -1537.44, 4.79)) {
  65. if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
  66. GivePlayerMoney(playerid, -100);
  67. if(IsValidObject(Pedagio2)) { DestroyObject(Pedagio2); SetTimer("Recriar_Portao_PD2", 2000, false); }
  68. }
  69. return true;
  70. }
  71. CMD:pagarpg3(playerid) {
  72.  
  73. if(IsPlayerInRangeOfPoint(playerid, 8.0, -23.4061, -1342.9047, 10.7999)) {
  74. if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
  75. GivePlayerMoney(playerid, -100);
  76. if(IsValidObject(Pedagio3)) { DestroyObject(Pedagio3); SetTimer("Recriar_Portao_PD3", 2000, false); }
  77. }
  78. return true;
  79. }
  80. CMD:pagarpg4(playerid) {
  81.  
  82. if(IsPlayerInRangeOfPoint(playerid, 8.0, -5.8154, -1364.9047, 10.7999)) {
  83. if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
  84. GivePlayerMoney(playerid, -100);
  85. if(IsValidObject(Pedagio4)) { DestroyObject(Pedagio4); SetTimer("Recriar_Portao_PD4", 2000, false); }
  86. }
  87. return true;
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement