SA-MP Forums Archive
How To Script.. - 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)
+--- Thread: How To Script.. (/showthread.php?tid=656189)



How To Script.. - xRadical3 - 09.07.2018

How to make a input dialogue. For example, I typed the /kick command, open a input dialog and ask me to type the player id and then ask for a reason?


Re: How To Script.. - spinu - 09.07.2018

https://sampforum.blast.hk/showthread.php?tid=379247

read this and you are good to go


Re: How To Script.. - xRadical3 - 09.07.2018

Quote:
Originally Posted by spinu
Посмотреть сообщение
I need input dialog, Not style list dialog


Re: How To Script.. - spinu - 09.07.2018

then use DIALOG_STYLE_INPUT
Have a look on: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
to read about syntax

Then go ahead and follow the tutorial.
When you reach OnDialogResponse blabla check for dialogid, then response and then inputtext.

Treat inputtext just like params[] when you create a cmd using zcmd ( Command parameter ).
So you kinda need sscanf the input and then add your kick stuff..