Little scripting questions
#6

ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_INPUTBOX, "Dialog", "Enter command text", "Ok", "Cancel");
and this under OnDialogResponse:
if(dialogid == DIALOGID)
{
if(!response) return 1;
if(response)
{
OnPlayerCommandText(playerid, inputtext);
}
return 0;
}
and this under OnPlayerCommandText:
if(!strcmp(cmdtext, "/car", true))
{
//COMMANDS HERE
return 1;
}
Reply


Messages In This Thread
Little scripting questions - by Cedimedi - 03.10.2009, 08:26
Re: Little scripting questions - by Kurence - 03.10.2009, 08:42
Re: Little scripting questions - by Cedimedi - 03.10.2009, 09:37
Re: Little scripting questions - by Kurence - 03.10.2009, 10:12
Re: Little scripting questions - by Cedimedi - 03.10.2009, 11:01
Re: Little scripting questions - by Kurence - 03.10.2009, 11:12
Re: Little scripting questions - by Dj_maryo1993 - 04.10.2009, 11:19
Re: Little scripting questions - by Correlli - 04.10.2009, 12:26
Re: Little scripting questions - by Cedimedi - 09.10.2009, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)