31.10.2009, 20:21
how do you make it like so on a DIALOG_STYLE_INPUT style that on the response that like if you put in box "die" you die?
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1) ///change ID to crrect one in ur script
{
if(!strcmp("kill", inputtext, false))
{
SendClientMessage(playerid,0xFF8000FF,"You killed yourself using the Dialogue box");
SetPlayerHealth(playerid,0);
}
}
return 1;
}