11.11.2010, 21:39
Hello, I have this:
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 ?
Код:
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);
}

