Return CMD
#15

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.
Код:
OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter"))
// code
return 1;
}
Then later somewhere else.

Код:
MyFunc(playerid)
{
OnPlayerCommandText(playerid, "/enter");
}
P.S. Don't mind the indentation or some minor error, posted this via my phone.
Reply


Messages In This Thread
Return CMD - by Peveral - 14.09.2017, 13:25
Re: Return CMD - by Vince - 14.09.2017, 13:32
Re: Return CMD - by Zeth - 14.09.2017, 13:36
Re: Return CMD - by Peveral - 14.09.2017, 14:05
Re: Return CMD - by Zeth - 14.09.2017, 14:08
Re: Return CMD - by Peveral - 14.09.2017, 14:18
Re: Return CMD - by Zeth - 14.09.2017, 14:20
Re: Return CMD - by Peveral - 14.09.2017, 14:23
Re: Return CMD - by Peveral - 14.09.2017, 14:32
Re: Return CMD - by Peveral - 14.09.2017, 21:00
Respuesta: Return CMD - by Cothect - 14.09.2017, 22:39
Re: Return CMD - by Peveral - 15.09.2017, 17:36
Respuesta: Re: Return CMD - by Cothect - 15.09.2017, 18:11
Re: Return CMD - by Peveral - 15.09.2017, 19:02
Re: Return CMD - by iSpark - 15.09.2017, 21:50
Re: Return CMD - by Paulice - 15.09.2017, 23:56

Forum Jump:


Users browsing this thread: 2 Guest(s)