12.04.2016, 13:20
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CLASS_TF141) // I name dialog ID defines like this, replace with your ID from ShowPlayerDialog!
{
if(response)
{
if(strcmp(inputtext, "1820141", false) == 0 && strlen(inputtext) != 0)
{
SpawnPlayer(playerid); // Entered correct password, may spawn
}
else
{
SendClientMessage(playerid, COLOR_RED, "Грешна парола!");
}
return 1;
}
return 0;
}