23.12.2014, 05:10
mire, no se como guardar el nombre del que intentу, o logrу loguearse con rcon, porque al hacerlo se me produce un flood tremendo en el archivo de texto que tengo para en caso de que logre, o falle
gracias!!
Код:
public OnRconLoginAttempt(ip[], password[], success) { new string[80]; if(!success) { for(new i=0; i<MAX_PLAYERS; i++) { new name[MAX_PLAYER_NAME]; GetPlayerName(i,name,sizeof(name)); format(string,sizeof(string),"%s fallo el login. Pass: %s, IP: %s ",name, password, ip); GuardarLog("rconfail",string); } } else { for(new i=0; i<MAX_PLAYERS; i++) { new name[MAX_PLAYER_NAME]; GetPlayerName(i,name,sizeof(name)); format(string,sizeof(string),"%s se logeo IP: %s", name,ip); GuardarLog("rconlogin",string); } } return 1; }