daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest May 20th, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. /*------------------dcmd defines----------------------*/
  4.     dcmd(die, 3, cmdtext);
  5.     dcmd(rules, 5, cmdtext);
  6.     dcmd(elegy, 5, cmdtext);
  7.     dcmd(tune, 4, cmdtext);
  8.     dcmd(army, 4, cmdtext);
  9.     dcmd(sethp, 5, cmdtext);
  10.     dcmd(setarmour, 9, cmdtext);
  11.     return 1;
  12.     }
  13. /*-----------------end of defines--------------*/
  14. dcmd_die(playerid, params[])
  15. {
  16.     #pragma unused params
  17. SetPlayerHealth(playerid, 0.00);
  18. SendClientMessage(playerid, COLOR_WHITE, "You have commited suicide, god damn emo!!!");
  19.  
  20. return 0;
  21. }
  22.  
  23. dcmd_rules(playerid, params[])
  24. {
  25.     #pragma unused params
  26. SendClientMessage(playerid, COLOR_GREEN, "1.No Deathmatching, may result in ban ");
  27. SendClientMessage(playerid, COLOR_GREEN, "2.No Carparking/drivebying may also end up in a ban,");
  28. SendClientMessage(playerid, COLOR_GREEN, "3.No flaming against players or admins may result in a mute or a ban.");
  29. SendClientMessage(playerid, COLOR_GREEN, "4.NO HACKING, if you hack you will get an permanent Ban!.");
  30. SendClientMessage(playerid, COLOR_GREEN, "5.No Bug Abusing, first you will get an kick as an warning then if you keep doing it, it will result in an ban");
  31. return 0;
  32. }
  33.     dcmd_elegy(playerid, params[])
  34. {
  35.     #pragma unused params
  36.     ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Cars:","Infernus\nElegy\nTurismo\nMonster\nNrg-900\n","Select","Cancel");
  37.     return 1;
  38. }
  39. dcmd_tune(playerid, params[])
  40. {
  41. #pragma unused params
  42.             new VehicleID;
  43.             VehicleID = GetPlayerVehicleID(playerid);
  44.             GameTextForPlayer(playerid,"~b~Car modded!", 4000, 5);
  45.             AddVehicleComponent(VehicleID, 1035);
  46.             AddVehicleComponent(VehicleID, 1138);
  47.             AddVehicleComponent(VehicleID, 1037);
  48.             AddVehicleComponent(VehicleID, 1039);
  49.             AddVehicleComponent(VehicleID, 1041);
  50.             AddVehicleComponent(VehicleID, 1078); // wheels
  51.             AddVehicleComponent(VehicleID, 1010); //nos 10x
  52.             ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 2); // changes the paintjob of the player's current vehicle
  53.     return 1;
  54. }
  55. dcmd_army(playerid, params[])
  56. {
  57. #pragma unused params
  58. SendClientMessageToAll(COLOR_RED, "Army Leader/member is now bad ass mutha fuckah.");
  59. GivePlayerWeapon(playerid, 24, 9999);
  60. GivePlayerWeapon(playerid, 27, 9999);
  61. GivePlayerWeapon(playerid, 31, 9999);
  62. GivePlayerWeapon(playerid, 32, 9999);
  63. return 1;
  64. }
  65. dcmd_sethp(playerid, params[])
  66. {
  67. #pragma unused params
  68. SetPlayerHealth(playerid, 100.0);
  69. SendClientMessageToAll(COLOR_WHITE, "Someone Have gotten full hp.");
  70. return 1;
  71. }
  72. dcmd_setarmour(playerid, params[])
  73. {
  74. #pragma unused params
  75. SetPlayerArmour(playerid, 100.0);
  76. SendClientMessageToAll(COLOR_WHITE, "Someone Have gotten full Armour.");
  77. return 1;
  78. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top