24.06.2010, 10:45
Hi! I could ask for the code ready to chat in a GUI? This is what I'll put the DIALOG_STYLE_INPUT sent to the chat.
if(strcmp(cmdtext, "/sendmsg", true) == 0)
{
ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_INPUT, "Send Message", "Input the message you wish to send", "Send", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1337)
{
if(response)
{
SendPlayerMessageToAll(playerid, inputtext);
}
}
return 0;
}