08.03.2017, 12:49
Quote:
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? |
Код:
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; }