11.07.2010, 08:56
Its in dialog.
Код:
if(dialogid == 12346) { if(response == 1) { if(strlen(inputtext)) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); OnPlayerLogin(playerid,tmppass); } else { format(string,sizeof(string),"Tere tulemast meie serverisse, %s\n\nPalun sisesta oma parool, kui Sa oled registreeritud\nSisesta parool ja vajuta Registreeri, kui Sul pole veel kasutajat",GetPlayerNameEx(playerid)); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Sisse logimine",string,"Logi sisse","Registreeri"); } } else { if(strlen(inputtext) >= 30 && strlen(inputtext) < 3) { format(string,sizeof(string),"Tere tulemast meie serverisse, %s\n\nPalun sisesta oma parool, kui Sa oled registreeritud\nSisesta parool ja vajuta Registreeri, kui Sul pole veel kasutajat",GetPlayerNameEx(playerid)); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Registreerumine",string,"Logi sisse","Registreeri"); return 1; } else { if (gPlayerAccount[playerid]) { SendClientMessage(playerid, COLOR_YELLOW, "See nimi on juba vхetud,palun vali mхni muu!."); Kick(playerid); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); OnPlayerRegister(playerid,tmppass); } } }