29.12.2012, 19:19
Puta, ninguйm tem a capacidade de ajudar o Cara ? Ta feia a coisa aqui em...
O Arquivo deve ficar assim:
Estou te ajudando sу esta vez, espero que nгo fique pedindo coisas via MP novamente..
pawn Код:
#define RCONS "Rcons/Rcons.ini"
public OnRconLoginAttempt(ip[], password[], success) {
new pip[16];
for(new i = (MAX_PLAYERS - 1); i > -1; --i) {
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) {
if(fexist(RCONS)) {
new File: Arq = fopen(RCONS, io_read), Str[24], Name[24];
GetPlayerName(i, Name, 24);
while(fread(Arq, Str)) {
if(strcmp(Str, Name, true)) SendClientMessage(i, COLOR_WHITE, "RCON: Senha digitada incorreta."), Kick(i);
else SendClientMessage(i, COLOR_WHITE, "RCON: Vocк estб logado como administrador.");
}
}
break;
}
}
return 1;
}
Код:
Paulo_Ricardo //Primeiro nick - Nгo й necessбrio o Coment Player_PT //Segundo nick e assim por diante..