06.02.2010, 19:43
you need box where you can write something?
then make this
and this somewhere in script
then make this
Код:
if(!strcmp(cmdtext, "/example", true))
{
SendClientMessageToAll(0xDEEE20FF, "Somebody was type /example");
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT
, "HEADER", "Put your text downhere", "Ok", "Cancle");
return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0 && response)
{
switch(listitem)
{
case 0:
{
//do something here
}
}
}
return 1;
}

