[SOLVED] Commands only works for RCON Admins -
OxygenBR - 30.12.2009
Hi all,
here I am (again) to ask you guys something. Check this out:
pawn Код:
if(strcmp(cmdtext,"/animacoes", true) == 0 || strcmp(cmdtext,"/anim", true) == 0) {
SendClientMessage(playerid, COR_ROXO, "|___________________________| ANIMAЗХES |_________________________|");
SendClientMessage(playerid, COR_VERMELHO, "> /fp - Fumar (na parede), /cigarro - Acender um cigarro");
SendClientMessage(playerid, COR_VERMELHO, "> /beber - Beber de uma Garrafa");
SendClientMessage(playerid, COR_ROXO, "|_________________________________________________________________|");
return 1;
}
As you can see, it's a VERY SIMPLE text script. Notice that there're NO
if(!IsPlayerAdmin(playerid) in this. Even with this code, I log in and type /animacoes (or /anim) and I got this:
Quote:
Vocк nгo estб logado como um Admin RCON! (portuguese)
- or -
You're not logged in as an RCON Admin! (english)
|
Then I tought, well, there must be some commands f*cking the whole script, I better take one by one out (with /* */) to test it. No results, than I just did /* */ on ALL commands that had the previous sentence (Vocк nгo estб logado como um Admin RCON!) and guess what - I received THE SAME MESSAGE, even not been officially in the script (as I did /* */)
I'm kinda pissed of here, so if anybody wants to help me, I guess I'll be very grateful.
Regards,
CaZeaJe~
Re: [UNSOLVED] Commands only works for RCON Admins -
Correlli - 30.12.2009
There's probably an admin check at the start of the OnPlayerCommandText-callback.
Something like:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!IsPlayerAdmin(playerid)) return 0;
// commands..
return 0;
}
Re: [UNSOLVED] Commands only works for RCON Admins -
MadeMan - 30.12.2009
Try to disable everything before the command under OnPlayerCommandText with /* */.
Re: [UNSOLVED] Commands only works for RCON Admins -
OxygenBR - 30.12.2009
Quote:
Originally Posted by MadeMan
Try to disable everything before the command under OnPlayerCommandText with /* */.
|
Quote:
Originally Posted by Don Correlli
There's probably an admin check at the start of the OnPlayerCommandText-callback.
Something like:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!IsPlayerAdmin(playerid)) return 0; // commands.. return 0; }
|
Neither worked. I disabled all the !IsPlayerAdmin from the WHOLE script! OMG... will I have to start all over again? Don't tell me this
Thanks you guys anyway.
Re: [UNSOLVED] Commands only works for RCON Admins -
MadeMan - 30.12.2009
Do you use any filterscripts?
Re: [UNSOLVED] Commands only works for RCON Admins -
Deat_Itself - 30.12.2009
Quote:
Originally Posted by MadeMan
Do you use any filterscripts?
|
FS doesnt give any reaction to GM.I tried this.
Re: [UNSOLVED] Commands only works for RCON Admins -
MadeMan - 30.12.2009
Quote:
Originally Posted by _Saif_
Quote:
Originally Posted by MadeMan
Do you use any filterscripts?
|
FS doesnt give any reaction to GM.I tried this.
|
I just tested it. If you have return 1 in FS OnPlayerCommandText it will block all commands from GM.
Re: [UNSOLVED] Commands only works for RCON Admins -
OxygenBR - 31.12.2009
Quote:
Originally Posted by MadeMan
Do you use any filterscripts?
|
I'm using Error's Registration system. I'll try to disable it. It won't hurt
When I do, I edit this post.
Thanks.
Re: [UNSOLVED] Commands only works for RCON Admins -
JoeDaDude - 31.12.2009
Thats probably the problem, on my server no commands worked at all when that fs were loaded, removed the fs and all worked fine
Re: [UNSOLVED] Commands only works for RCON Admins -
OxygenBR - 01.01.2010
Quote:
Originally Posted by JoeDaDude
Thats probably the problem, on my server no commands worked at all when that fs were loaded, removed the fs and all worked fine
|
Ok, at first I thought it, but then I changed my mind. So, if you've tried it already, I'll consider this as SOLVED.
Thanks for everyone's answers!