08.03.2018, 15:13
Is it possible to add command from game ?
A simple command that send a message only This code:
For example:
/addcommand <help> <Help isn't available now.>
so cmd help can be added in script and when player type /help it will send him Help isn't available now.
A simple command that send a message only This code:
PHP Code:
CMD:addcommand(playerid, params[])
{
new cmdname[25], textsend[180];
if(sscanf(params, "s[25]s[180]", cmdname, textsend)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE:/addcommand <cmd name> <text that cmd gonna send>");
return 1;
}
/addcommand <help> <Help isn't available now.>
so cmd help can be added in script and when player type /help it will send him Help isn't available now.