28.06.2011, 19:12
pawn Код:
public OnRconLoginAttempt(ip[], password[], success) {
if(success) {
new pip[16];
for(new i = 0x0; i < MAX_PLAYERS; ++i) {
if(IsPlayerConnected(i)) {
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) {
SendClientMessage(i, -1, "Parabйns, agora vocк й um admin da RCON. ");
return 0x01;
}
}
}
}
return 0x01;
}