Advertisement
DarkFireYT

DarkCMD v0.4

Nov 24th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. /*
  2. DarkCMD
  3. version 0.4
  4. */
  5.  
  6. #if !defined DarkCMD_INC_
  7. #define DarkCMD_INC_
  8.  
  9. #define DarkCMD_INCLUDE_VERSION 314
  10. public OnGameModeInit();
  11. public bool:_DarkCMD_is_gamemode = !defined FILTERSCRIPT;
  12. #pragma unused _DarkCMD_is_gamemode
  13.  
  14. #if defined PC_OnInit
  15. forward PC_OnInit();
  16. #endif
  17.  
  18. #if defined OnPlayerCommandReceived
  19. forward OnPlayerCommandReceived(playerid, cmd[], params[], flags);
  20. #endif
  21.  
  22. #if defined OnPlayerCommandPerformed
  23. forward OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags);
  24. #endif
  25.  
  26. #define dcmd:%0(%1) \
  27. forward pc_dcmd_%0(%1); \
  28. public pc_dcmd_%0(%1)
  29.  
  30. #define alias:%0(%1); \
  31. forward pc_alias_%0(); \
  32. public pc_alias_%0() \
  33. PC_RegAlias(#%0, %1);
  34.  
  35. #define flags:%0(%1); \
  36. forward pc_flags_%0(); \
  37. public pc_flags_%0() \
  38. PC_SetFlags(#%0, %1);
  39.  
  40. #define DCMD dcmd
  41.  
  42. #define DCOMMAND dcmd
  43.  
  44. #define callcmd::%0(%1) \
  45. pc_cmd_%0(%1)
  46.  
  47. #define PC_HasFlag(%0,%1) \
  48. (PC_GetFlags(%0) & %1)
  49.  
  50. #if !defined isnull
  51. #define isnull(%0) \
  52. ((!(%0[0])) || (((%0[0]) == '\1') && (!(%0[1]))))
  53. #endif
  54. #endif
  55.  
  56. /*
  57. DarkCMD
  58. version 0.4
  59. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement