16.08.2012, 08:49
pawn Код:
public OnPlayerConnect(playerid)
{
TogglePlayerSpectating(playerid, true);
ShowPlayerDialog(playerid, iLoginDialog, DIALOG_STYLE_PASSWORD, "Login", string[playerid], "Login", "Quit");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == iLoginDialog)
{
if(response)
{
TogglePlayerSpectating(playerid, false);
return 1;
}
else
ShowPlayerDialog(playerid, iLoginDialog, DIALOG_STYLE_PASSWORD, "Login", string[playerid], "Login", "Cancel");
}
return 1;
}