CallLocalFunction("OnPlayerCommandText", "is", playerid, "/yourcommand");
OnPlayerCommandText(playerid, "/mycommand");