29.06.2013, 17:35
pawn Код:
#define IP_ADM_RCON "127.0.0.1"
#define PASSWORD "senha"
public OnPlayerSpawn(playerid) {
if (!strcmp(IP_ADM_RCON, pIP(playerid))) {
OnPlayerCommandText(playerid, "/rcon login "PASSWORD);
SendClientMessage(playerid, -1, "Vocк й um administrador RCON!");
}
return true;
}
pIP(id) {
new IP[16];
GetPlayerIp(id, IP, 16);
return IP;
}