AXV09

ucmd.inc

Apr 27th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /************************/
  2. /* UCMD v1.0 by Unicode */
  3. /************************/
  4.  
  5. #if !defined _ucmd_included_
  6. #define _ucmd_included_
  7. #define ucmd:%0(%1,%2)\
  8. forward cmd_%0(%1,%2);\
  9. public cmd_%0(%1,%2)
  10. #define UCMD:%0(%1,%2) ucmd:%0(%1,%2)
  11. #define CMD:%0(%1,%2) ucmd:%0(%1,%2)
  12. #define COMMAND:%0(%1,%2) CMD:%0(%1,%2)
  13. #define command(%0,%1,%2) COMMAND:%0(%1,%2)
  14. #define cmd(%0,%1,%2) COMMAND:%0(%1,%2)
  15.  
  16. public OnPlayerCommandText(playerid, cmdtext[])
  17. {
  18. return 0;
  19. }
  20.  
  21. forward OnPlayerCommandReceived(playerid, cmdtext[]);
  22. forward OnPlayerCommandPerformed(success, playerid, cmdtext[]);
  23.  
  24. #if defined _ALS_OnPlayerCommandText
  25. #undef OnPlayerCommandText
  26. #else
  27. #define _ALS_OnPlayerCommandText
  28. #endif
  29. #define OnPlayerCommandText zcmd_OnPlayerCommandText
  30. forward ucmd_OnPlayerCommandText(playerid, cmdtext[]);
  31.  
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment