is it possible to show someone a text in a box?
#6

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
I think this is what you mean:
I use it for /commands etc in my server.
Might be a bit messy because i lost track of it a little myself.

Код:
#define ShowErrorDialog(%1,%2) ShowPlayerDialog(%1, DIALOG_ERROR, DIALOG_STYLE_MSGBOX, "ADMIN MESSAGE", %2, "OK", "")

enum
{
	DIALOG_NONE=12345,
	DIALOG_ERROR=12346,
};
Now you can call create something with it.

For example, I created a chatbot which talks back to you in public chat if you ask him questions.
He will send a message to you if you are are flooding/spamming the bot.
Код:
ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "Chatman", "Don't spam the mighty chatman!", "OK", "");
You can also use it like this.
Код:
CMD:help(playerid, params[])
{
	new info[1024];
	strcat(info, "/generalhelp\n", sizeof(info));
	strcat(info, "/jobhelp\n", sizeof(info));
	strcat(info, "/playerhelp \n", sizeof(info));
	strcat(info, "/chathelp \n", sizeof(info));
	strcat(info, "/passporthelp\n", sizeof(info));
	strcat(info, "/phonehelp\n", sizeof(info));
	strcat(info, "/vehiclehelp\n", sizeof(info));
	strcat(info, "/businesshelp\n", sizeof(info));
	strcat(info, "/animhelp\n", sizeof(info));
	strcat(info, "/licensehelp\n", sizeof(info));
	strcat(info, "/tradehelp\n", sizeof(info));
	strcat(info, "/bankhelp\n", sizeof(info));
	strcat(info, "/spousehelp\n", sizeof(info));
	strcat(info, "/househelp\n", sizeof(info));
	strcat(info, "/ocmds - Organization commands\n", sizeof(info));
	strcat(info, "/gps\n\n", sizeof(info));
	strcat(info, "/bodyhelp\n\n", sizeof(info));
	strcat(info, "/bribe - Bribe an officer.\n", sizeof(info));
	strcat(info, "/showlicenses - Shows your licenses to an police officer.\n", sizeof(info));
	ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "Los Angeles Roleplay Server Help", info, "OK", "");
	return 1;
}
Why did you copy pasted some dialog code when he said he doesn't want dialog...
Reply


Messages In This Thread
is it possible to show someone a text in a box? - by grymtn - 20.11.2017, 23:53
Re: is it possible to show someone a text in a box? - by Erioni - 21.11.2017, 00:25
Re: is it possible to show someone a text in a box? - by grymtn - 21.11.2017, 00:37
Re: is it possible to show someone a text in a box? - by Gammix - 21.11.2017, 01:41
Re: is it possible to show someone a text in a box? - by jasperschellekens - 22.11.2017, 10:06
Re: is it possible to show someone a text in a box? - by Ritzy2K - 22.11.2017, 10:36
Re: is it possible to show someone a text in a box? - by Lucases - 22.11.2017, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)