[HELP] I wanna make it better
#1

Hello, I have this:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
	{
	if(dialogid == JOINSTARS)
		{
		if(!strcmp(inputtext, "password", true))
		{
		team[playerid] = 6;
		ShowPlayerDialog(playerid, JOINSTARS, DIALOG_STYLE_INPUT, "Please enter the password to join S.T.A.R.S.", "Password:", "Submit", "Cancel");
		SendClientMessage(playerid,GREEN,"You may now spawn.");
		SetPlayerColor(playerid,GREEN);
		SetPlayerTeam(playerid, 1);
		SetPlayerPos(playerid,1624.2527,1821.0498,10.8203) ;
		SetPlayerFacingAngle(playerid,5.6779);
		GivePlayerWeapon(playerid,31,300);
		GivePlayerWeapon(playerid,24,300);
		GivePlayerMoney(playerid, 20000);
		SetPlayerInterior(playerid,0);
		SetPlayerArmour(playerid, 100);
  }
but after the player enter the password, the box won't go away until he types something else and click submit. How do I make it go away by itself after he enters the password and click submit ?
Reply


Messages In This Thread
[HELP] I wanna make it better - by marinov - 11.11.2010, 21:39
Re: [HELP] I wanna make it better - by iggy1 - 11.11.2010, 21:54
Re: [HELP] I wanna make it better - by marinov - 11.11.2010, 22:02
Re: [HELP] I wanna make it better - by iggy1 - 11.11.2010, 22:04
Re: [HELP] I wanna make it better - by marinov - 11.11.2010, 22:05
Re: [HELP] I wanna make it better - by marinov - 11.11.2010, 22:07

Forum Jump:


Users browsing this thread: 2 Guest(s)