[Ajuda] Rcon com nome nao funciona ajuda ai alguem PF
#1

Nao funciono quero por pra logar na rcon sу pelo nome do dono mais esti ai nem funfa
loguei com outro conta sem ser dono mais loga assim mesmo alguem sabes arrumar
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success)
    {
        for(new 
0GetMaxPlayers(); != yx++)
        {
            new 
IP[16];
            
GetPlayerIp(xIP16);
            if(
strcmp(ipIP)) continue;
            new 
NickName[MAX_PLAYER_NAME];
            
GetPlayerName(xNickNameMAX_PLAYER_NAME);
            if(!
strcmp(NickName"[KG]ShakaL"true) || !strcmp(NickName"[KG]Fr3_Thug"true) || !strcmp(NickName"[KG]MOX_FOREVER"true) || !strcmp(NickName"[KG]Matthew_Drew"true))
            {
                
SendClientMessage(x0x33CCFFAA"[Info]Vocк estб autorizado a logar na RCON.");
            }
            else
            {
                
SendClientMessage(x0x33CCFFAA"[Info]Vocк nгo estб autorizado a logar na RCON.");
                
Kick(x);
            }
        }
    }
    return 
1;

Reply
#2

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success)
    {
        for(new x = 0, y = GetMaxPlayers(); x != y; x++)
        {
            new IP[16];
            GetPlayerIp(x, IP, 16);
            if(strcmp(ip, IP)) continue;
            new NickName[MAX_PLAYER_NAME];
            GetPlayerName(x, NickName, MAX_PLAYER_NAME);
            if(!strcmp(NickName, "[KG]ShakaL", true) || !strcmp(NickName, "[KG]Fr3_Thug", true) || !strcmp(NickName, "[KG]MOX_FOREVER", true) || !strcmp(NickName, "[KG]Matthew_Drew", true))
            {
                SendClientMessage(x, 0x33CCFFAA, "[Info]Vocк estб autorizado a logar na RCON.");
            }
            else
            {
                SendClientMessage(x, 0x33CCFFAA, "[Info]Vocк nгo estб autorizado a logar na RCON.");
                Kick(x);
            }
            return 1;
        }
    }
    return 1;
}
Reply
#3

vc mudo o q ai
Reply
#4

new IP[32];
Reply
#5

vo testar aqui pra ver vlw se funfa eu falo
Reply
#6

Nem funfo mano
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)