21.06.2013, 06:13
Код:
if(dialogid == 1244) { if(response) { if (gPlayerAccount[playerid] != 0) { ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"{FF0000FF}Account found{FF0000FF}","Type your password below to log-in","Log-in","Quit"); } else { ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"Welcome, Please register!","Type your password below to register a new account.","Register","Quit"); } new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has accepted the terms and conditions.",d,m,y,h,mi,s,sendername); LoginLog(string); } else { SendClientMessage(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition"); Kick(playerid); } }