Advertisement
Guest User

Hungary No Dialog Tuning Script

a guest
Jun 22nd, 2011
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.41 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnFilterScriptInit()
  4. {
  5. print("---------------------\n");
  6. print("|                    \n");
  7. print("|  No Dialog Tuning  \n");
  8. print("|      script        \n");
  9. print("|   L O A D E D !    \n");
  10. print("|                    \n");
  11. print("---------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. print("---------------------\n");
  18. print("|                    \n");
  19. print("|  No Dialog Tuning  \n");
  20. print("|      script        \n");
  21. print("| U N  L O A D E D ! \n");
  22. print("|                    \n");
  23. print("---------------------\n");
  24. return 1;
  25. }
  26.  
  27. public OnPlayerCommandText(playerid,cmdtext[])
  28. {
  29. new vehid;
  30. vehid = GetPlayerVehicleID(playerid);
  31.  
  32. if(strcmp("/tuninghelp",cmdtext,true,0) == 0)
  33. {
  34. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Tuning Parancsok", "/motorjavit - megjavítja a motort. \n /karosszeriajavit - megjavítja a külsejét a kocsinak. \n /paintjob 1/2/3 - 'matricák' rárakása a kocsira /cc- black/white/red/green/orange/blue/grey - átszinezi a kocsit \n /nitro - nitrót tesz a kocsidba \n /hidraulika - hidraulikát tesz a kocsidba. \n /spoiler - Spoilered átállitja: Win", "Oké", "Kilépés");
  35. }
  36.  
  37. if(strcmp("/motorjavit",cmdtext,true,11) == 0)
  38. {
  39. SetVehicleHealth(vehid,1000.0);
  40. GivePlayerMoney(playerid,-108);
  41. SendClientMessage(playerid,0xAAAAAAAA,"Megjavítottad a motort! -108$ (20.088 HUF)");
  42. }
  43.  
  44. if(strcmp("/karosszeriajavit",cmdtext, true, 17) == 0)
  45. {
  46. RepairVehicle(vehid);
  47. GivePlayerMoney(playerid,-100);
  48. SendClientMessage(playerid,0xAAAAAAAA,"Megjavítottad a karosszériát! -100$ (18.600 HUF)");
  49. }
  50.  
  51. if(strcmp("/paintjob1", cmdtext, true, 10) == 0)
  52. {
  53. ChangeVehiclePaintjob(vehid, 1);
  54. SendClientMessage(playerid,0xAAAAAAAA,"Paintjob: 1");
  55. }
  56.  
  57. if(strcmp("/paintjob2", cmdtext, true, 10) == 0)
  58. {
  59. ChangeVehiclePaintjob(vehid, 2);
  60. SendClientMessage(playerid,0xAAAAAAAA,"Paintjob: 2");
  61. }
  62.  
  63. if(strcmp("/paintjob3", cmdtext, true, 10) == 0)
  64. {
  65. ChangeVehiclePaintjob(vehid, 3);
  66. SendClientMessage(playerid,0xAAAAAAAA,"Paintjob: 3");
  67. }
  68.  
  69. if(strcmp("/cc-black", cmdtext, true, 9) == 0)
  70. {
  71. ChangeVehicleColor(vehid, 0, 0);
  72. }
  73.  
  74. if(strcmp("/cc-white", cmdtext, true, 9) == 0)
  75. {
  76. ChangeVehicleColor(vehid, 1, 1);
  77. }
  78.  
  79. if(strcmp("/cc-green", cmdtext, true, 9) == 0)
  80. {
  81. ChangeVehicleColor(vehid, 86 , 86 );
  82. }
  83.  
  84. if(strcmp("/cc-red", cmdtext, true, 9) == 0)
  85. {
  86. ChangeVehicleColor(vehid, 3, 3);
  87. }
  88.  
  89. if(strcmp("/cc-grey", cmdtext, true, 9) == 0)
  90. {
  91. ChangeVehicleColor(vehid, 13, 13);
  92. }
  93.  
  94. if(strcmp("/cc-blue", cmdtext, true, 9) == 0)
  95. {
  96. ChangeVehicleColor(vehid, 53, 53);
  97. }
  98.  
  99. if(strcmp("/cc-orange", cmdtext, true, 9) == 0)
  100. {
  101. ChangeVehicleColor(vehid, 6, 6);
  102. }
  103.  
  104.  
  105. if(strcmp("/nitrogen", cmdtext, true, 9) == 0)
  106. {
  107. AddVehicleComponent(vehid,1010);
  108.  
  109. }
  110. if(strcmp("/hidraulika", cmdtext, true, 11) == 0
  111. {
  112. AddVehicleComponent(vehid,1087);
  113. SendClientMessage(playreid,0xAAAAAAAA,"Hidraulika berakva!");
  114. }
  115.  
  116. if(strcmp("/spoiler",cmdtext, true, 8) == 0)
  117. {
  118. AddVehicleComponent(vehid, 1001);
  119. SendClientMessage(playerid,0xAAAAAAAA,"Spoiler: Win"
  120. }
  121.  
  122. if(strcmp("/remove",cmdtext,true,7) == 0 && IsPlayerAdmin(playerid))
  123. {
  124. DestroyVehicle(vehid);
  125. SendClientMessage(playerid,0xAAAAAAAA,"A jármu elteleportálódott a s e m m i b e !!!");
  126. }
  127.  
  128. if(strcmp("/respawn", cmdtext, true, 8) == 0 && IsPlayerAdmin(playerid))
  129. {
  130. SetVehicleToRespawn(vehid);
  131. SendClientMessage(playerid,0xAAAAAAAA,"Jármu visszatéve az eredeti helyére!");
  132. }
  133. return 1;
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement