16.01.2018, 10:33
That's just an example and other way than Misiur proposed.
PHP код:
CMD:set(playerid, params[])
{
new
subcommand[6],
scmd_params[28];
if(sscanf(params, "s[6]S()[28]", subcommand, scmd_params))
return SCM(playerid, -1, "/set [money/...]");
if(!strcmp(subcommand, "money", true))
{
new targetid,
money;
if(sscanf(scmd_params, "ui", targetid, money))
return SCM(playerid, -1, "/set money [playerid/name] [amount]");
// Other codes
}
return 1;
}

