[Tutorial] Rules Dialog!
#1

First Find OnPlayerCommandText Callback
and
rename /mycommand to /rules
than delete that //Do something here
Type in the following:
Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Rules", "Never try to cheat\nNever ask admins we choose admins", "OK.", "Leave");
OK. Till we've made that.Now find public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

add

Код:
	if(dialogid == 10)
	{
		if(response)
		{
		  SendClientMessage(playerid,0x008000FF, "OK. Glad u will understand rules!");
		}
		else
		{
		  SendClientMessage(playerid, 0xFF0000FF, "You selected 'Leave', for that don't understandrules, kick!");
		  Kick(playerid);
		}
		return 1;
	}
Easy wasn't it?
Reply


Messages In This Thread
[Tutorial] Rules Dialog! - by bestr32 - 05.03.2011, 16:29
Re: [Tutorial] Rules Dialog! - by bestr32 - 05.03.2011, 16:34
Re: [Tutorial] Rules Dialog! - by bestr32 - 05.03.2011, 16:36
Re: [Tutorial] Rules Dialog! - by Markx - 05.03.2011, 16:38
Re: [Tutorial] Rules Dialog! - by playbox12 - 05.03.2011, 16:38
Re: [Tutorial] Rules Dialog! - by alpha500delta - 05.03.2011, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)