- 0
Problema dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
gunskill
[pawn]if(dialogid == 334)
{
if(response)
{
if(strval(inputtext) || strlen(inputtext))
{
new adminsecurity = strval(inputtext);
if(PlayerInfo[playerid][pSec] == adminsecurity)
{
SendClientMessage(playerid, 0xFFFFFFAA, " Acum poti folosi toate comenzile, ai grija sa nu abuzezi");
AdminSecurity[playerid] = 1;
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { PlayerInfo[playerid][pLocked] = 1; }
format(string, 128, "AdmWarning: %s a gresit parola", sendername);
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_GREY,"* Wrong Password!");
}
}
}
}
}
else
{
Kick(playerid);
}
return 1;
}[/pawn]
Problema e ca daca am un DIALOG_STYLE_MSGBOX si am doua butoane pe al doilea imi da kick(in formatul in care e acum diialogul mai sus)
dar daca il pun fara kick adica asa nu mai da kick dar daca dau pe acelasi buton(al 2lea,cel din dreapta)nu se intampla nimic(adica cum e mai jos)
[pawn]if(dialogid == 334)
{
if(response)
{
if(strval(inputtext) || strlen(inputtext))
{
new adminsecurity = strval(inputtext);
if(PlayerInfo[playerid][pSec] == adminsecurity)
{
SendClientMessage(playerid, 0xFFFFFFAA, " Acum poti folosi toate comenzile, ai grija sa nu abuzezi");
AdminSecurity[playerid] = 1;
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { PlayerInfo[playerid][pLocked] = 1; }
format(string, 128, "AdmWarning: %s a gresit parola", sendername);
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_GREY,"* Wrong Password!");
}
}
}
}
}
return 1;
}[/pawn]
1 answer to this question
Recommended Posts