14.09.2017, 13:36
you can make a function then run that program on that cmd and as on other function like what Vince said. Here is a example:
then you can use it wherever you want.
PHP код:
forward returncommand(playerid);
public returncommand(playerid)
{
Bla bla bla //content
return 1; //return the function
}
PHP код:
if(strcmp(cmd, "/enter", true) == 0)
{
returncommand(playerid);
}