[Ajuda] Como alterar o comando de /rcon login.
#1

ea galera do forum queria saber como mudar o comando /rcon login password.

ex:/sharingan login password

ou tem como colocar um [FS] que deixa logar na rcon so por nick permitido
so se tive o nome dele no codigo [FS]
Reply
#2

https://sampwiki.blast.hk/wiki/OnRconLoginAttempt

Ficaria assim +/-

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        GetPlayerName(i, playername, sizeof(playername));
        if(!strcmp(playername, "NICK1", true) || !strcmp(playername, "NICK2", true) || !strcmp(playername, "NICK3", true))
        {
            SendClientMessage(i, 0xFF0000AA, "[INFO]{FFFFFF}Vocк estб autorizado a logar na RCON.");
         } else {
            SendClientMessage(i, 0xFF0000AA, "[BRP~System]{FFFFFF}Vocк nгo estб autorizado a logar na RCON.");
            Kick(i);
        }
    }
    return 1;
}
Reply
#3

eu nao sei mecher com esse codigos entao quando fui coplilar deu esses erros oq eu faзo? SAMP 0.3X


C:\Users\DreikLOL\Desktop\lolfff.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt")
C:\Users\DreikLOL\Desktop\lolfff.pwn(3) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : error 017: undefined symbol "GetPlayerName"
C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : error 017: undefined symbol "playername"
C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : error 029: invalid expression, assumed zero
C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#4

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(i, playername, sizeof(playername));
        if(!strcmp(playername, "NICK1", true) || !strcmp(playername, "NICK2", true) || !strcmp(playername, "NICK3", true))
        {
            SendClientMessage(i, 0xFF0000AA, "[INFO]{FFFFFF}Vocк estб autorizado a logar na RCON.");
         } else {
            SendClientMessage(i, 0xFF0000AA, "[BRP~System]{FFFFFF}Vocк nгo estб autorizado a logar na RCON.");
            Kick(i);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)