07.01.2011, 15:04
pawn Код:
if( dialogid == 4 )
{
if( response )
{
if( GetPVarInt( playerid, "BlogiPrisijungimai" ) < 3 )
{
new
Failas[ 51 ]
;
format( Failas, 51, "DuomenuBaze/Zaidejai/%s.ini", ZaidejoVardas( playerid ) );
if( PatikrintiZaidejoSlaptazodi( Failas, inputtext ) )
{
SendClientMessage( playerid, -1, ""#h_Balta"[ > ] Sлkmingai "#h_Raudona"prisijungлte" );
}
else
{
SendClientMessage( playerid, -1, ""#h_Balta"[ > ] "#h_Geltona"Jыs buvote "#h_Raudona"iрmestas iр serverio. ["#h_Orandzine"3 blogi prisijungimai]" );
Kick( playerid );
}
}
else
{
SetPVarInt( playerid, "BlogiPrisijungimai", GetPVarInt( playerid, "BlogiPrisijungimai" ) + 1 );
new
Stringas[ 145 ]
;
format( Stringas, 145, ""#h_Raudona"Blogai "#h_Balta"suvestas slaptaюodis.\n"#h_Zalia"Bandykite dar. "#h_Raudona"Likж bandymш: "#h_Geltona"%d", 3 - GetPVarInt( playerid, "BlogiPrisijungimai" ) );
ShowPlayerDialog( playerid, 4, DIALOG_STYLE_INPUT, ""#h_Geltona"Prisi"#h_Zalia"jun"#h_Raudona"gimas", Stringas, "Vesti", "Palikti" );
}
}
else
{
Kick( playerid );
}
}