[AJUDA] Aperto F e aparece isso.
#1

Porquй quando aperto F in game, tanto para entrar em um veiculo, interiores, apareзe [Servidor]: Comando invбlido - Digite (/ajuda)., como posso retirar isso? lembrando e do GameMode.
Reply
#2

Poste sua public

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}
Reply
#3

pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        {
            OnPlayerCommandText(playerid,"/entrar");
            OnPlayerCommandText(playerid,"/sair");
            OnPlayerCommandText(playerid,"/entrar2");
            return 1;
        }
    }
    if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
    {
        if(gTeam[playerid] == 2  || IsACop(playerid) || IsAPre(playerid))
        {
            OnPlayerCommandText(playerid,"/pe");
            OnPlayerCommandText(playerid,"/pg");
            OnPlayerCommandText(playerid,"/pb");
            OnPlayerCommandText(playerid,"/pfbi3");
            OnPlayerCommandText(playerid,"/pfbi4");
            OnPlayerCommandText(playerid,"/pcce");
            OnPlayerCommandText(playerid,"/pccg");
            OnPlayerCommandText(playerid,"/pce");
            OnPlayerCommandText(playerid,"/pcg");
            OnPlayerCommandText(playerid,"/pcc");
            return 1;
        }
    }
    return 0;
}
Reply
#4

Verifica se estes comandos existe, na public OnPlayerCommandText

Код:
            OnPlayerCommandText(playerid,"/entrar");
            OnPlayerCommandText(playerid,"/sair");
            OnPlayerCommandText(playerid,"/entrar2");

            OnPlayerCommandText(playerid,"/pe");
            OnPlayerCommandText(playerid,"/pg");
            OnPlayerCommandText(playerid,"/pb");
            OnPlayerCommandText(playerid,"/pfbi3");
            OnPlayerCommandText(playerid,"/pfbi4");
            OnPlayerCommandText(playerid,"/pcce");
            OnPlayerCommandText(playerid,"/pccg");
            OnPlayerCommandText(playerid,"/pce");
            OnPlayerCommandText(playerid,"/pcg");
            OnPlayerCommandText(playerid,"/pcc");
Reply
#5

Tenta assim:
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        {
            OnPlayerCommandText(playerid,"/entrar");
            OnPlayerCommandText(playerid,"/sair");
            OnPlayerCommandText(playerid,"/entrar2");
        }
    }
    if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
    {
        if(gTeam[playerid] == 2  || IsACop(playerid) || IsAPre(playerid))
        {
            OnPlayerCommandText(playerid,"/pe");
            OnPlayerCommandText(playerid,"/pg");
            OnPlayerCommandText(playerid,"/pb");
            OnPlayerCommandText(playerid,"/pfbi3");
            OnPlayerCommandText(playerid,"/pfbi4");
            OnPlayerCommandText(playerid,"/pcce");
            OnPlayerCommandText(playerid,"/pccg");
            OnPlayerCommandText(playerid,"/pce");
            OnPlayerCommandText(playerid,"/pcg");
            OnPlayerCommandText(playerid,"/pcc");
        }
    }
    return 1;
}
Ou verifica se esses comandos existem:
pawn Код:
OnPlayerCommandText(playerid,"/entrar");
            OnPlayerCommandText(playerid,"/sair");
            OnPlayerCommandText(playerid,"/entrar2");
Reply
#6

Sim cara, exitem.
Reply
#7

Quote:
Originally Posted by CaioMors
Посмотреть сообщение
Sim cara, exitem.
Todos ? e estгo returnando certo todos tambem ?
Reply
#8

pawn Код:
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        {
            OnPlayerCommandText(playerid,"/entrar");
            OnPlayerCommandText(playerid,"/sair");
            OnPlayerCommandText(playerid,"/entrar2");
            return 1;
        }
    }
Esta ai o Problema, Pois se vc Aperta F em qq lugar que seja ira executar esse CMD'S...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)