Dialog
#5

Quote:
Originally Posted by DutchBoy
Посмотреть сообщение
i also have some trouble with dialogs. ( Not the same but post it here because i don't think its needed to create a new topic)

I'm trying to get a dialog triggerd on an other player when using iam using a command.
Example. type /Showrules 1
and it opens the rules dialog for Player with ID 1.

any one have any idea?
Just use a input box and then ondialogresponse strval the inputtext and display the rules to the player :P

Код:
CMD:showrules(playerid, params[])
{
	Dialog_Show(playerid, RulesOtherPlayer, DIALOG_STYLE_INPUT, ""EMBED_YELLOW"Player Selection:", "Please input player ID!", "Next", "Cancel");
	return 1;
}
Код:
Dialog:RulesOtherPlayer(playerid, response, listitem, inputtext[])
{
	if(response)
	{
		new Player = strval(inputtext);
		SendClientMessage(Player, -1, "Message")
	}
	return 1;
}
Reply


Messages In This Thread
Dialog - by SpaceRP - 08.03.2017, 11:02
Re: Dialog - by SyS - 08.03.2017, 11:14
Re: Dialog - by SpaceRP - 08.03.2017, 11:38
Re: Dialog - by DutchBoy - 08.03.2017, 12:41
Re: Dialog - by JessThompson - 08.03.2017, 12:49
Re: Dialog - by JessThompson - 08.03.2017, 12:55
Re: Dialog - by SpaceRP - 08.03.2017, 14:48
Re: Dialog - by SpaceRP - 18.03.2017, 13:12

Forum Jump:


Users browsing this thread: 2 Guest(s)