15.09.2017, 21:50
Well if you're using the callback OnPlayerCommamdText() to give in the functionality to the commands then why not call OnPlayerCommamdText() from some where else (function) with the parameter defined by you, in this case /enter.
i.e.
Then later somewhere else.
P.S. Don't mind the indentation or some minor error, posted this via my phone.
i.e.
Код:
OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/enter")) // code return 1; }
Код:
MyFunc(playerid) { OnPlayerCommandText(playerid, "/enter"); }