Advertisement
Tugamars_PT

Sistema Pedagio [v.1.0] em ZCMD

Dec 1st, 2013
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.05 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4. #include <zcmd>
  5.  
  6.  
  7. #pragma tabsize 0
  8.  
  9. forward fecharlvls();
  10. forward fecharlslv();
  11.  
  12. new CancelaLVLS;
  13. new CancelaLSLV;
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     print("\n--------------------------------------");
  18.     print(" Sistema de Pedágios By: Tugamars       ");
  19.     print("--------------------------------------\n");
  20.     //Pedagio LV LS
  21.     //Laterais
  22.     CreateObject(979, 1812.13989, 805.36542, 10.42910,   0.00000, 0.00000, 178.75070);
  23.     CreateObject(978, 1781.99170, 804.51849, 10.36460,   0.00000, 0.00000, 179.42149);
  24.     CreateObject(978, 1811.90137, 819.88654, 9.98615,   0.00000, 0.00000, 0.00000);
  25.     CreateObject(979, 1782.73938, 819.75769, 9.99752,   0.00000, 0.00000, 0.00000);
  26.     //Lampadas
  27.     CreateObject(3877, 1798.24463, 806.10339, 10.40543,   0.00000, 0.00000, 0.00000);
  28.     CreateObject(3877, 1808.45886, 806.91925, 10.40543,   0.00000, 0.00000, 0.00000);
  29.     CreateObject(3877, 1796.03662, 820.09576, 10.10944,   0.00000, 0.00000, 0.00000);
  30.     CreateObject(3877, 1786.30347, 818.96729, 10.10944,   0.00000, 0.00000, 0.00000);
  31.     //Cancela
  32.     CancelaLVLS = CreateObject(968, 1788.48254, 810.79248, 10.79725,   0.00000, 90.00000, 357.00000);
  33.     CancelaLSLV = CreateObject(968, 1799.02673, 814.75079, 10.79720,   0.00000, 90.00000, 357.00000);
  34.     //Resto
  35.     CreateObject(8556, 1797.39087, 812.63733, 13.98732,   0.00000, 0.00000, 0.00000);
  36.     CreateObject(8168, 1786.40283, 812.52698, 11.58143,   0.00000, 0.00000, 104.01295);
  37.     CreateObject(8168, 1808.45154, 812.57507, 11.58143,   0.00000, 0.00000, 286.69287);
  38.  
  39.     //Fim Pedagio LV-LS
  40.     return 1;
  41. }
  42.  
  43. public OnFilterScriptExit()
  44. {
  45.     print("\n--------------------------------------");
  46.     print(" Sistema de Pedágios By: Tugamars       ");
  47.     print("--------------------------------------\n");
  48.  
  49.  
  50.  
  51.     return 1;
  52. }
  53.     CMD:pedagio(playerid, params[])
  54.     {
  55.         if(IsPlayerInRangeOfPoint(playerid, 3.0, 1802.4081, 812.8696, 10.6952))
  56.         {
  57.            
  58.             if(GetPlayerMoney(playerid) < 50)
  59.             {
  60.                
  61.                 SendClientMessage(playerid, 0xF20006FF, "Você não tem dinheiro suficiente");
  62.             }
  63.             if(GetPlayerMoney(playerid) >= 50)
  64.             {
  65.                
  66.                 GivePlayerMoney(playerid, -50);
  67.                 SetObjectRot(CancelaLSLV, 0.00000, 18.00000, 357.00000);
  68.                 SendClientMessage(playerid, 0xF47A00FF, "Bem vindo a Las Venturas .Foi debitado 50R$ na sua conta .");
  69.                 SetTimer("fecharlslv", 5000, false);
  70.             }
  71.         }
  72.         if(IsPlayerInRangeOfPoint(playerid, 3.0, 1792.0217, 816.1849, 10.8929))
  73.         {
  74.            
  75.             if(GetPlayerMoney(playerid) < 50)
  76.             {
  77.                
  78.                 SendClientMessage(playerid, 0xF20006FF, "Você não tem dinheiro suficiente");
  79.             }
  80.             if(GetPlayerMoney(playerid) >= 50)
  81.             {
  82.                
  83.                 GivePlayerMoney(playerid, -50);
  84.                 SetObjectRot(CancelaLVLS,  0.00000, 18.00000, 357.00000);
  85.                 SendClientMessage(playerid, 0xF47A00FF, "Bem vindo a Los Santos .Foi debitado 50R$ na sua conta .");
  86.                 SetTimer("fecharlvls", 5000, false);
  87.             }
  88.         }
  89.         return 1;
  90.     }
  91.     return 0;
  92. }
  93.  
  94. public fecharlvls()
  95. {
  96.     SetObjectRot(CancelaLVLS,  0.00000, 90.00000, 357.00000);
  97. }
  98. public fecharlslv()
  99. {
  100.     SetObjectRot(CancelaLSLV, 0.00000, 90.00000, 357.00000);
  101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement