pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

www.marcosweb private pastebin - collaborative debugging tool What's a private pastebin?


Posted by MaRcOsWeB on Mon 1 Sep 23:08
report abuse | download | new post

  1. //----------------------------------------------------------------------------//
  2. #include <a_samp>
  3. #include <float>
  4. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  5. //----------------------------------------------------------------------------//
  6. #if defined FILTERSCRIPT
  7. //----------------------------------------------------------------------------//
  8. public OnFilterScriptInit()
  9. {
  10.         print("\n--------------------------------------");
  11.         print(" Doble Explosion de Coche y Bomba Humana by Marcos Huck");
  12.         print("--------------------------------------\n");
  13.         return 1;
  14. }
  15. //----------------------------------------------------------------------------//
  16. public OnFilterScriptExit()
  17. {
  18.         return 1;
  19. }
  20. //----------------------------------------------------------------------------//
  21. #else
  22. //----------------------------------------------------------------------------//
  23. main()
  24. {
  25.         print("\n----------------------------------");
  26.         print(" Doble Explosion de Coche y Bomba Humana by Marcos Huck");
  27.         print("----------------------------------\n");
  28. }
  29. //----------------------------------------------------------------------------//
  30. #endif
  31. //----------------------------------------------------------------------------//
  32. public OnVehicleDeath(vehicleid, killerid)
  33. {
  34.         new Float:X, Float:Y, Float:Z;
  35.         GetVehiclePos(vehicleid,X, Y, Z);
  36.         CreateExplosion(X,Y,Z,6,10000);
  37.         CreateExplosion(X,Y,Z,6,10000);
  38.         CreateExplosion(X,Y,Z,6,10000);
  39.         CreateExplosion(X,Y,Z,6,10000);
  40.         CreateExplosion(X,Y,Z,6,10000);
  41.         CreateExplosion(X,Y,Z,6,10000);
  42.         CreateExplosion(X,Y,Z,6,10000);
  43.         CreateExplosion(X,Y,Z,6,10000);
  44.         CreateExplosion(X,Y,Z,6,10000);
  45.         CreateExplosion(X,Y,Z,6,10000);
  46.         CreateExplosion(X,Y,Z,6,10000);
  47.         CreateExplosion(X,Y,Z,6,10000);
  48.         return 1;
  49. }
  50. //----------------------------------------------------------------------------//
  51. public OnPlayerCommandText(playerid, cmdtext[])
  52. {
  53. //----------------------------------------------------------------------------//
  54. dcmd(bombahumana,12,cmdtext);
  55. //----------------------------------------------------------------------------//
  56. return 0;}
  57. //----------------------------------------------------------------------------//
  58. dcmd_bombahumana(const playerid,const params[]){
  59.     #pragma unused params
  60.         new Float:X, Float:Y, Float:Z;
  61.         GetPlayerPos(playerid,X,Y,Z);
  62.         CreateExplosion(X,Y,Z,6,10000);
  63.         CreateExplosion(X,Y,Z,6,10000);
  64.         CreateExplosion(X,Y,Z,6,10000);
  65.         CreateExplosion(X,Y,Z,6,10000);
  66.         return 1; }
  67. //----------------------------------------------------------------------------//

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post