Advertisement
MacBack

DEFINE TUTORIAL

Nov 30th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Takže define tutorial
  2. a máme ho tu..
  3. define je jako že si můžeme nadefinovat něco
  4. Třeba barvu když potřebujete
  5. Kratké define ale složité:
  6. #define r "{FF0000}" červená
  7. #define g "{00FF00}" zelená
  8. #define w "{FFFFFF}" Bílá
  9. #define c "{00FFFF}" Modrá
  10.  
  11. Existuje aj define na COLOR_RED nebo BARVA_CERVENA
  12.  
  13. define:
  14. #define COLOR_GREY 0xBEBEBEAA
  15. #define COLOR_WHITE 0xFFFFFFAA
  16. #define COLOR_GREEN 0x33AA33AA
  17. #define COLOR_GRAD5 0xE3E3E3FF
  18. #define COLOR_GRAD1 0xB4B5B7FF
  19. #define COLOR_YELLOW 0xFFFF00AA
  20. #define COLOR_RED 0xFF0000FF
  21. #define BARVA_SEDA 0xAFAFAFAA
  22. #define BARVA_BILA 0xEFEFF7AA
  23. #define COLOR_PURPLE 0xC2A2DAAA
  24. #define COLOR_DARKBLUE 0x2641FEAA
  25. #define BARVA_SMODRA 0x33CCFFAA
  26. #define BARVA_HNEDA 0x993300AA
  27. #define BARVA_ORANZOVA 0xFF9933AA
  28. #define BARVA_RUZOVA 0xFF66FFAA
  29. #define BARVA_ZELENA 0x00FF33FF
  30. #define BARVA_ZLUTA 0xCCFF00FF
  31. #define BARVA_MODRA 0x4169FFAA
  32. #define BARVA_MODRA2 0x0088FFFF
  33. #define BARVA_CERVENA 0xE10000AA
  34.  
  35.  
  36. Taky jsou skratky na příkazy v pawně
  37. define:
  38. #define SCM SendClientMessage
  39. #define SCMTA SendClientMessageToAll
  40. #define GPW GivePlayerWeapon
  41. #define SPH SetPlayerHealth
  42. #define SPA SetPlayerArmour
  43. #define SPS SetPlayerSkin
  44. #define IPA IsPlayerAdmin
  45. #define IPC IsPlayerConnected
  46.  
  47. Místo třeba GivePlayerWeapon psát GPW
  48.  
  49. Existuje i define na playerid
  50. #define p playerid
  51.  
  52. Na povolání používám
  53. define:
  54. #define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%0,%4,%1,%2,%3)
  55.  
  56. Pokud chcete se naučit dcmd
  57. define:
  58. #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
  59.  
  60. Naučit CMD:příkaz?
  61. Potřebujete include
  62. include zcmd
  63. Download: http://ulozto.sk/x39Ufgtn/zcmd-inc
  64.  
  65. FS nebo GM
  66. může mít i počet hráču na serveru
  67. define:
  68. #define MAX_PLAYERS_EX 500
  69.  
  70.  
  71. Děláte TDM?
  72. Já sem použival
  73. define:
  74. #define CLASS 1204
  75. #define CLASS1 1205
  76.  
  77. FILTERSCRIPT DEFINE
  78. #define FILTERSCRIPT
  79. Pragma?
  80. #pragma tabsize 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement