public OnRconLoginAttempt(ip[], password[], success){if(!success){//------Lekérdezések----------new Hour, Minute, Second;new string[56], sd[256];gettime(Hour, Minute, Second);new Year,Month,Day;getdate(Year,Month,Day);//----------------------------//------Létrehozások----------for(new i=0; i<MAX_PLAYERS; i++) { GetPlayerName(i,Player,sizeof(Jatekos)); format(sd,sizeof(sd),\"/RCON/%s.txt\",Jatekos); dini_Create(sd); dini_Set(\"rcon.ini\",\"Név\", Jatekos); format(string,sizeof(string),\"|%d|%d|%d|\",Year,Month,Day); dini_Set(\"rcon.ini\",\"Dátum\", string); dini_Set(\"rcon.ini\", \"IP\", ip); dini_Set(\"rcon.ini\", \"Hibás jelszó\", password);}//----------------------------}return 1;}
public OnRconLoginAttempt(ip[],password[], success){new O, P, Mp, E, H, N;gettime(O, P, Mp);getdate(E, H, N);if(!success){ for(new i = 0; i < MAX_PLAYERS; i++) { new pIP[128]; GetPlayerIp(i, pIP, sizeof(pIP)); if(!strcmp(ip, pIP, true)) { new pNamee[MAX_PLAYER_NAME]; GetPlayerName(i, pNamee, sizeof(pNamee)); new rconlogba[256]; new File:rconlog = fopen(\"rconlog.txt\",io_append); format(rconlogba,sizeof(rconlogba), \"[%d %d. %d.][%d:%d:%d] %s | %s | %s\\r\\n\",E,H,N,O,P,Mp,ip,pNamee); fwrite(rconlog,rconlogba); fclose(rconlog); }}}return 1;}
Jól van, nyugodj meg, és mellõzd az éhes fejeket.
nekem megy kössz _______________RCON védve:)