help needed, contine and quit
#1

I made a messagebox when you join ou can press contine and quit etc. but if i press quit i wont be quited, and i dont read a message how can i solve this problem:
my code
Код:
//-----------------------------------------------------------------------------*

public OnPlayerConnect(playerid)
{
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Welcome to our server", "If you need help ask an admin or typ /help. \n ADMINS Are: Security and Snorlex \n \n \n To join press continu, to quit press quit and you will be kicked.", "contine", "quit");
	return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1)
	{
		if(response)
		{
			SendClientMessage(playerid,0x008000FF, "Enjoy your stay!");
		}
		else
		{
		  SendClientMessage(playerid, 0xFF0000FF, "You selected 'Quit', therefore you got kicked. Goodbye!");
		  Kick(playerid);
		}
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
help needed, contine and quit - by security - 28.02.2010, 10:59
Re: help needed, contine and quit - by aircombat - 28.02.2010, 11:04
Re: help needed, contine and quit - by security - 28.02.2010, 11:10
Re: help needed, contine and quit - by aircombat - 28.02.2010, 11:15
Re: help needed, contine and quit - by security - 28.02.2010, 11:22
Re: help needed, contine and quit - by Born2die - 28.02.2010, 11:31
Re: help needed, contine and quit - by security - 28.02.2010, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)