SA-MP Forums Archive
GUI commands or sumfin' - 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: GUI commands or sumfin' (/showthread.php?tid=370962)



GUI commands or sumfin' - Bax - 21.08.2012

Hello. I don't get it how to use commands using samp gui.
i.e. When I type /kick it shows me a dialog which asks me for players ID, and so when I input the ID shall i use a variable to store players ID or is there another way?


Re: GUI commands or sumfin' - Calgon - 22.08.2012

If you mean the SA-MP dialog system, every response triggers the OnDialogResponse callback. All you need to do is track the response and kick the player.

See here for more information.