Hey guys, we just tested it and a problem has occured. When player writes anything to the dialog and confirms it (he uses it) it kicks him out.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) // dialogid 1
{
if(dialogid == 1)
{
if(response)
{
new length;
length = strlen(inputtext);
if(strfind(inputtext, "A", false, length))
{
ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else if(strfind(inputtext, "B", false, length))
{
ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else if(strfind(inputtext, "C", false, length))
{
ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else if(strfind(inputtext, "D", false, length))
{
ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else if(strfind(inputtext, "E", false, length))
{
ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else if(strfind(inputtext, "F", false, length))
{
ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
}
}
return 1;
}