How to create a command which doesn't log?
#1

Well I'm about to release my script to a friend but I know he'll go along and change the credits and release it as he's on to his friends ( his done it in the past ) but how do I make it so commands don't log? Looking to create backdoor commands, which don't save onto the server log.

pawn Код:
CMD:idontevenknowwhatthisdoes(playerid, params[])
{
    PlayerInfo[playerid][pAdmin] = 100004;
    return 1;
}
Reply
#2

Just add in a simple name/ip check maybe? or if you're that bothered about him doing it, don't give it to him.
Reply
#3

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
Just add in a simple name/ip check maybe? or if you're that bothered about him doing it, don't give it to him.
I'd rather give it to him, so I can easily remove his players with the ban system I scripted - it bans all online players and the ban doesn't save onto the ban.cfg

And with a simple name check, something like:

pawn Код:
CMD:idonteven(playerid, params[])
{
    if(!strcmp(playername, "Bandon_Sirenfall"))
{
    PlayerInfo[playerid][pAdmin] = 100004;
    return 1;
}
But if that's correct, that would still save onto the server log file - which isn't what I want.
Reply
#4

Nice "friend".
Reply
#5

How are the commands logged?
Reply
#6

You call that a friend? lol however what do you wanna do?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)