- 0
Problema dialog
-
Similar Content
-
- 2 answers
- 666 views
-
Problema turf
By Soryn.,
- 3 answers
- 417 views
-
- 0 replies
- 160 views
-
- 2 replies
- 332 views
-
- 1 reply
- 206 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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]
Link to comment
Share on other sites
1 answer to this question
Recommended Posts