Question about dialog. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about dialog. (
/showthread.php?tid=105929)
Question about dialog. -
meegan1 - 31.10.2009
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?
Re: Question about dialog. -
member - 31.10.2009
You'll need strcmp i think.
Here's an example:
pawn Code:
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;
}
Re: Question about dialog. -
meegan1 - 31.10.2009
ok i will try that, thanks

.
Re: Question about dialog. -
[TR]Driftking - 31.10.2009
sağolasın