Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. public OnFilterScriptInit()
  5. {
  6. AddStaticVehicle(579, 2043.7872, 1343.8685, 10.6719, 285.0782, 0, 1);
  7. }
  8.  
  9. public OnFilterScriptExit()
  10. {
  11. return 1;
  12. }
  13.  
  14. CMD:rigbomb(playerid, params[])
  15. {
  16. new cmd[128], idx;
  17. cmd = strtok(cmdtext, idx);
  18. // check if the player is in a vehicle
  19. if(!IsPlayerInAnyVehicle(playerid))
  20. {
  21. SendClientMessage(playerid, 0xFF0000AA,"You need to be inside a vehicle to use this command.");
  22. return 1;
  23. }
  24. // check if the player is on a BMX
  25. // if(IsABmx(GetPlayerVehicleID(playerid)))
  26. // {
  27. // SendClientMessage(playerid, 0xFF0000AA, "You cannot use this on a BMX.");
  28. // return 1;
  29. // }
  30. // get the vehicle id and store in 'car' variable
  31. // new car=GetPlayerVehicleID(playerid);
  32. // check if the player is eligible to use the command
  33. // if(IsAMob(playerid) || (HitmanPermission(playerid) && HitmanMission[playerid][E_AGENT_ONMISSION] == 1))
  34. // {
  35.  
  36. if(strcmp(params, "timer", true) == 0)
  37. {
  38.  
  39. SendClientMessage(playerid, 0xFF0000AA,"Timer");
  40. return 1;
  41. }
  42.  
  43. if(strcmp(params, "remote", true) == 0)
  44. {
  45.  
  46. SendClientMessage(playerid, 0xFF0000AA,"Remote");
  47. return 1;
  48. }
  49.  
  50. if(strcmp(params, "radio", true) == 0)
  51. {
  52. SendClientMessage(playerid, 0xFF0000AA,"Radio");
  53. return 1;
  54. }
  55.  
  56. if(strcmp(params, "speed", true) == 0)
  57. {
  58. SendClientMessage(playerid, 0xFF0000AA,"Speed");
  59. return 1;
  60. }
  61.  
  62. // }
  63.  
  64. //else
  65. //{
  66. //SendClientMessage(playerid, 0xFF0000AA,"You are not eligible to use this command. You must be an official mafia member.");
  67. //return 1;
  68. //}
  69. return 1;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement