SA-MP Forums Archive
[Ajuda] Problema Rcon - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema Rcon (/showthread.php?tid=623339)

Pages: 1 2


Problema Rcon - Pedro1812 - 30.11.2016

Toda vez que Algum player ou adm clica na letra "H" aparece a senha da rcon como tiro isso?

Print:


Re: Problema Rcon - Jelly23 - 30.11.2016

Mostre OnPlayerKeyStateChange.


Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by Jelly23
View Post
Mostre OnPlayerKeyStateChange.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && PlayerInfo[playerid][SpecID] != INVALID_PLAYER_ID)
{
if(newkeys == KEY_JUMP) AdvanceSpectate(playerid);
else if(newkeys == KEY_SPRINT) ReverseSpectate(playerid);
}
return 1;
}


Re: Problema Rcon - Jelly23 - 30.11.2016

Estб usando algum FS?


Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by Jelly23
View Post
Estб usando algum FS?
essas sгo minhas fs: ladmin ServerProtector Properties Objetos tunar enquete HGps Animacoes anuncios armascosta


Re: Problema Rcon - Jelly23 - 30.11.2016

Quote:
Originally Posted by Pedro1812
View Post
essas sгo minhas fs: ladmin ServerProtector Properties Objetos tunar enquete HGps Animacoes anuncios armascosta
Providencie a callback OnPlayerKeyStateChange que estб dentro de cada um (se houver).


Re: Problema Rcon - teteu99 - 30.11.2016

Quote:
Originally Posted by Pedro1812
View Post
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && PlayerInfo[playerid][SpecID] != INVALID_PLAYER_ID)
{
if(newkeys == KEY_JUMP) AdvanceSpectate(playerid);
else if(newkeys == KEY_SPRINT) ReverseSpectate(playerid);
}
return 1;
}
Quando for posta cуdigo , coloca assim : [ PHP] O CУDIGO AQUI [ /PHP] !!!!

@Edit

Como ficarб:

PHP Code:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && PlayerInfo[playerid][SpecID] != INVALID_PLAYER_ID)
    {
        if(
newkeys == KEY_JUMPAdvanceSpectate(playerid);
        else if(
newkeys == KEY_SPRINTReverseSpectate(playerid);
    }
    return 
1;




Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by teteu99
View Post
Quando for posta cуdigo , coloca assim : [ PHP] O CУDIGO AQUI [ /PHP] !!!!

@Edit

Como ficarб:

PHP Code:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && PlayerInfo[playerid][SpecID] != INVALID_PLAYER_ID)
    {
        if(
newkeys == KEY_JUMPAdvanceSpectate(playerid);
        else if(
newkeys == KEY_SPRINTReverseSpectate(playerid);
    }
    return 
1;

Desculpa... Nгo entendi,poderia explicar de novo?


Re: Problema Rcon - teteu99 - 30.11.2016

Quote:
Originally Posted by Pedro1812
View Post
Desculpa... Nгo entendi,poderia explicar de novo?
Quando vocк for posta cуdigo aqui no FORUM coloque como eu falei !

@Post

Vocк jб verificou se tem FilterScript?


Re: Problema Rcon - Pedro1812 - 30.11.2016

ata... jkasjkasjaskjaskajskasjasj ss tem sгo essas aqui:

PHP Code:
ladmin ServerProtector Properties Objetos tunar enquete HGps Animacoes anuncios armascosta 



Re: Problema Rcon - teteu99 - 30.11.2016

Entгo tente procurar nos filterscript se existe algo na callback OnPlayKeyStage que estб mostrando a senha da rcon in-game!


Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by teteu99
View Post
Entгo tente procurar nos filterscript se existe algo na callback OnPlayKeyStage que estб mostrando a senha da rcon in-game!
eu achei um arquivo escrito ''OnPlayerPause''


Re: Problema Rcon - Psicotico - 30.11.2016

Quote:
Originally Posted by Pedro1812
View Post
eu achei um arquivo escrito ''OnPlayerPause''
Abra todos esses FS, de um por um, Dк CTRL + F, digite OnPlayerKeyState e verifique em cada um se existe algo envolvendo a RCON, ou poste aqui.


Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by Psicotico
View Post
Abra todos esses FS, de um por um, Dк CTRL + F, digite OnPlayerKeyState e verifique em cada um se existe algo envolvendo a RCON, ou poste aqui.
o Bloco de notas falou assim: "nгo й Possivel Encontrar OnPlayerKeyState"


Mas aqui esta Minha pasta:

PHP Code:
echo Executing Server Config...
lanmode 0
rcon_password batatinha123
maxplayers 50
port 7777
hostname 
[BRASILMUNDO DOS MITOS 2016 [MdM]
gamemode0 MdM
plugins streamer
filterscripts ladmin ServerProtector Properties Objetos tunar enquete HGps Animacoes anuncios armascosta 
query 1
weburl www
.los-hermanos.forumbrasil.net
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
logtimeformat 
[%H:%M:%S]
language PT-BRASIL
ackslimit 100000
messageholelimit 100000
messageslimit 100000 



Re: Problema Rcon - Psicotico - 30.11.2016

Quote:
Originally Posted by Pedro1812
View Post
o Bloco de notas falou assim: "nгo й Possivel Encontrar OnPlayerKeyState"
Vocк jб abriu TODOS esses FS? E em NENHUM deles hб OnPlayerKeyState?


Re: Problema Rcon - Psicotico - 30.11.2016

Faz o seguinte, testa seu GM sem nenhum FS e veja se vai mostrar a senha rcon ao apertar H.
Depois vб colocando um FS, e testando. Atй encontrar em qual FS estб o problema..


Re: Problema Rcon - Pedro1812 - 30.11.2016

ok...


Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by Psicotico
View Post
Faz o seguinte, testa seu GM sem nenhum FS e veja se vai mostrar a senha rcon ao apertar H.
Depois vб colocando um FS, e testando. Atй encontrar em qual FS estб o problema..
Continua '-'
print:


Re: Problema Rcon - Psicotico - 30.11.2016

Em qual FS? ou estб no GM?


Re: Problema Rcon - Pedro1812 - 30.11.2016

Quote:
Originally Posted by Psicotico
View Post
Em qual FS? ou estб no GM?
Eu baixei essa gm mano e n sei se esta na gm '-' skjdksdfsad