Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 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. return 0;
  23. }
  24.  
  25. if(strcmp(params, "help", true) == 0)
  26. {
  27. SendClientMessage(playerid, 0xFFFFFFFF, "|------------------BOMB USAGE------------------|");
  28. SendClientMessage(playerid, 0xFFFFFFFF, " Timer bomb: /rigbomb timer [seconds]");
  29. SendClientMessage(playerid, 0xFFFFFFFF, " Remote bomb: /rigbomb remote [plant/detonate]");
  30. SendClientMessage(playerid, 0xFFFFFFFF, " Speed bomb: /rigbomb speed [speed threshold]");
  31. SendClientMessage(playerid, 0xFFFFFFFF, " SMS bomb: /rigbomb SMS [plant/detonate]");
  32. SendClientMessage(playerid, 0xFFFFFFFF, " Chemical bomb: /rigbomb chemical [plant/detonate]");
  33. SendClientMessage(playerid, 0xFFFFFFFF, "|----------------------------------------------|");
  34. }
  35.  
  36. if(!IsPlayerInAnyVehicle(playerid))
  37. {
  38. SendClientMessage(playerid, 0xFF0000AA,"You need to be inside a vehicle to use this command.");
  39. return 1;
  40. }
  41.  
  42. if(strcmp(params, "timer", true) == 0)
  43. {
  44.  
  45. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Timer");
  46. return 1;
  47. }
  48.  
  49. if(strcmp(params, "remote", true) == 0)
  50. {
  51.  
  52. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Remote");
  53. return 1;
  54. }
  55.  
  56. if(strcmp(params, "SMS", true) == 0)
  57. {
  58. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: SMS");
  59. return 1;
  60. }
  61.  
  62. if(strcmp(params, "chemical", true) == 0)
  63. {
  64. SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Chemical");
  65. return 1;
  66. }
  67.  
  68.  
  69. return 1;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement