Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. #include <a_samp>
  2. #include <YSI\y_commands>
  3. #include <YSI\y_master>
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. AddStaticVehicle(579, 2043.7872, 1343.8685, 10.6719, 285.0782, 0, 1);
  8. ycmd("rigbomb");
  9. }
  10.  
  11. public OnFilterScriptExit()
  12. {
  13. return 1;
  14. }
  15.  
  16. forward ycmd_rigbomb(playerid, params, help);
  17.  
  18. YCMD:rigbomb(playerid, params[], help)
  19. {
  20. if (help)
  21. {
  22. SendClientMessage(playerid, 0xFFFFFFFF, "|------------------BOMB USAGE------------------|");
  23. SendClientMessage(playerid, 0xFFFFFFFF, " Timer bomb: /rigbomb timer [seconds]");
  24. SendClientMessage(playerid, 0xFFFFFFFF, " Remote bomb: /rigbomb remote [plant/detonate]");
  25. SendClientMessage(playerid, 0xFFFFFFFF, " Speed bomb: /rigbomb speed [speed threshold]");
  26. SendClientMessage(playerid, 0xFFFFFFFF, " SMS bomb: /rigbomb SMS [plant/detonate]");
  27. SendClientMessage(playerid, 0xFFFFFFFF, " Chemical bomb: /rigbomb chemical [plant/detonate]");
  28. SendClientMessage(playerid, 0xFFFFFFFF, "|----------------------------------------------|");
  29. }
  30.  
  31. if(!IsPlayerInAnyVehicle(playerid))
  32. {
  33. SendClientMessage(playerid, 0xFF0000AA,"You need to be inside a vehicle to use this command.");
  34. return 1;
  35. }
  36.  
  37. if(strcmp(params, "timer", true) == 0)
  38. {
  39.  
  40. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Timer");
  41. return 1;
  42. }
  43.  
  44. if(strcmp(params, "remote", true) == 0)
  45. {
  46.  
  47. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Remote");
  48. return 1;
  49. }
  50.  
  51. if(strcmp(params, "SMS", true) == 0)
  52. {
  53. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: SMS");
  54. return 1;
  55. }
  56.  
  57. if(strcmp(params, "chemical", true) == 0)
  58. {
  59. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Chemical");
  60. return 1;
  61. }
  62.  
  63.  
  64. return 1;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement