[Ajuda] Rcon
#5

pawn Код:
public OnRconLoginAttempt(ip[], password[], success) {
    new playername[MAX_PLAYER_NAME];
    if (success) {
        for (new i = 0; i < MAX_PLAYERS; i++) {
            new pIp[16]; GetPlayerIP(i, pIp);
            if(strcmp(pIp, ip)) continue;
            GetPlayerName(i, playername, sizeof(playername));
            if (!strcmp(playername, "ZaturN", true)) {
                SendClientMessage(i, -1, "[RCON] Vocк tem permissгo para logar na rcon.");
            } else {
                SendClientMessage(i, -1, "[RCON] Vocк nгo tem permissгo para logar na rcon.");
                SetTimerEx("BanPlayer", 200, "d", i);
            }
        }
    }
    return 1;
}

public BanPlayer(playerid){
    Ban(playerid);
    return 1;
}
Reply


Messages In This Thread
Rcon - by ZaturN - 24.12.2013, 14:11
Re: Rcon - by smiiir - 24.12.2013, 14:17
Re: Rcon - by ZaturN - 24.12.2013, 14:21
Re: Rcon - by kixtz - 24.12.2013, 14:29
Re: Rcon - by Kuddy - 24.12.2013, 14:32
Re: Rcon - by ZaturN - 24.12.2013, 14:33
Re: Rcon - by kixtz - 24.12.2013, 14:40
Re: Rcon - by ZaturN - 24.12.2013, 14:44
Re: Rcon - by goldspy98 - 24.12.2013, 14:44
Re: Rcon - by kixtz - 24.12.2013, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)