How To Script..
#1

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?
Reply
#2

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

read this and you are good to go
Reply
#3

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

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)