open.mp forum
[Library] cusCMD - Custom Command - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31)
---- Thread: [Library] cusCMD - Custom Command (/showthread.php?tid=1152)



cusCMD - Custom Command - Tama - 2020-07-30

Yeah i know it may be useless for you who reliable to speed like Pawn.CMD, but i managed to porting izcmd to this.
You can change prefix or sensitive char....

PHP Code:
#define CUSTOM_CMD "."
#define CMD_SENSITIVE false
#include <cusCMD> 

For command processing you'll changing CMD: to Process:

Here's example code:
PHP Code:
#include <a_samp>

#define CMD_PREFIX ">"
#define CMD_SENSTIVE false

#include <cusCMD>

// Output: >help
Process:help(playeridparams[]) {
? ? 
SendClientMessage(playerid, -1"Yay!");
? ? return 
0;

NOTE: use only special char, otherwise it won't work ( maybe ?\_(?)_/? )

?If you're interested, you can download and test it yourself.
https://pastebin.com/JqeHAGmQ