Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. /// public Toll1()
  2. {
  3. patarina1 = 0;
  4. RotateObject(toll1,0.0,90.0,81.2494202,3);
  5. return 1;
  6. }
  7.  
  8. ////////////////////////////////////////////////////
  9. toll1 = CreateDynamicObject(968,49.8909988,-1542.4610596,4.9349999,0.0000000,90.0000000,81.2494202); //object(barrierturn) (1)
  10. ////////////////////////////////////////////////////
  11. CMD:toll(playerid,params[])
  12. {
  13. new sendername[MAX_PLAYER_NAME+1],string[128];
  14. if(PlayerToPoint(7, playerid,51.1809998,-1535.6569824,4.9349999))
  15. {
  16. if(patarina1 == 1)
  17. {
  18. SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu");
  19. return 1;
  20. }
  21. patarina1 = 1;
  22. RotateObject(toll1,0.0,2.0,81.2438965,3);
  23. SetTimerEx("Toll1", 5000, false, "i", playerid);
  24. GetPlayerName(playerid, sendername, sizeof(sendername));
  25. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platili ste patarinu 50$");
  26. format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu.", sendername);
  27. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  28. GivePlayerMoney(playerid,-50);
  29. }
  30. else if(PlayerToPoint(7, playerid,52.3450012,-1527.9329834,4.9349999))
  31. {
  32. if(patarina2 == 1)
  33. {
  34. SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu!");
  35. return 1;
  36. }
  37. patarina2 = 1;
  38. RotateObject(toll2,0.0,2.0,81.7491455,3);
  39. SetTimerEx("Toll2", 5000, false, "i", playerid);
  40. GetPlayerName(playerid, sendername, sizeof(sendername));
  41. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platili ste 50$");
  42. format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu", sendername);
  43. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44. GivePlayerMoney(playerid,-50);
  45. }
  46. else if(PlayerToPoint(7, playerid,1641.1419678,-10.9379997,36.3089981))
  47. {
  48. if(patarina3 == 1)
  49. {
  50. SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu!");
  51. return 1;
  52. }
  53. patarina3 = 1;
  54. RotateObject(toll3,0.0,358.0,203.9996948,3);
  55. SetTimerEx("Toll3", 5000, false, "i", playerid);
  56. GetPlayerName(playerid, sendername, sizeof(sendername));
  57. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platile ste patarinu 50$");
  58. format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu.", sendername);
  59. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  60. GivePlayerMoney(playerid,-50);
  61. }
  62. else if(PlayerToPoint(7, playerid,1633.1340332,-13.6759996,36.3709984))
  63. {
  64. if(patarina4 == 1)
  65. {
  66. SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu!.");
  67. return 1;
  68. }
  69. patarina4 = 1;
  70. RotateObject(toll4,0.0,357.9999390,23.9940491,3);
  71. SetTimerEx("Toll4", 5000, false, "i", playerid);
  72. GetPlayerName(playerid, sendername, sizeof(sendername));
  73. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platili ste patarinu 50$");
  74. format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu.", sendername);
  75. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  76. GivePlayerMoney(playerid,-50);
  77. }
  78. return 1;
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement