Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined _scmd_Included
- #endinput
- #else
- #define _scmd_Included
- #endif
- #define CMD:%0(%1) \
- forward cmd_%0(%1); \
- public cmd_%0(%1)
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- new funcname[32];
- format(funcname, sizeof funcname, "cmd_%s", cmdtext[1]);
- return CallLocalFunction(funcname, "i", playerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment