[Q] How remove msg join/part?
#1

Q: How to remove the message output for connecting/disconnected NPCs/players?

Example output server_log.txt
I want to remove it:
Код:
[00:30:57] [npc:join] NAME has joined the server (0:127.0.0.1)
Reply
#2

You cant disable SAMP default stuff. You could for example add ClearChat or something when he connects so players dont see it, but thats preety much about it.
Also, why dont you use Actors instead? Actors dont take any slots and they have many functions same as NPC's
Reply
#3

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
You cant disable SAMP default stuff. You could for example add ClearChat or something when he connects so players dont see it, but thats preety much about it.
Also, why dont you use Actors instead? Actors dont take any slots and they have many functions same as NPC's
They don't have the same functions as NPC, but if you are using NPC for just standing and not performing any movement then you should use actors.
Reply
#4

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
You cant disable SAMP default stuff. You could for example add ClearChat or something when he connects so players dont see it, but thats preety much about it.
Also, why dont you use Actors instead? Actors dont take any slots and they have many functions same as NPC's
Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
They don't have the same functions as NPC, but if you are using NPC for just standing and not performing any movement then you should use actors.
The real question is not what to use Actors or NPCs and how to disabled output to console.

Код:
publics OnPlayerConnect(playerid) {
     if (IsPlayerNPC(playerid)) return 0; //no work.
     return 1;
}
Reply
#5

Does not anyone know how to disable log to console?
Reply
#6

Quote:
Originally Posted by Logofero
Посмотреть сообщение
Does not anyone know how to disable log to console?
It isn't possible, why would you want to disable console logs? There might be a way around your issue.
Reply
#7

You can use fixes.inc to prevent spam of joining and exiting messages. Like ddos prevented
Reply
#8

Quote:
Originally Posted by Kyla
Посмотреть сообщение
You can use fixes.inc to prevent spam of joining and exiting messages. Like ddos prevented
Where can I get it?

The point is to disable join/part for NPСs, as there may be up to 500
I do not want to flood the console
Код:
[03:37:48] [connection] 127.0.0.1:52275 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52274 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52273 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52278 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52277 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52276 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52280 requests connection cookie.
[03:37:48] [connection] 127.0.0.1:52279 requests connection cookie.
[03:37:49] Incoming connection: 127.0.0.1:52279 id: 10
[03:37:49] Incoming connection: 127.0.0.1:52280 id: 11
[03:37:49] Incoming connection: 127.0.0.1:52276 id: 12
[03:37:49] Incoming connection: 127.0.0.1:52277 id: 13
[03:37:49] Incoming connection: 127.0.0.1:52278 id: 14
[03:37:49] Incoming connection: 127.0.0.1:52273 id: 15
[03:37:49] Incoming connection: 127.0.0.1:52275 id: 16
[03:37:49] Incoming connection: 127.0.0.1:52274 id: 17
[03:37:49] [npc:join] bot_12 has joined the server (10:127.0.0.1)
[03:37:49] [npc:join] bot_17 has joined the server (11:127.0.0.1)
[03:37:49] [npc:join] bot_3 has joined the server (12:127.0.0.1)
[03:37:49] [npc:join] bot_1 has joined the server (13:127.0.0.1)
[03:37:49] [npc:join] bot_13 has joined the server (14:127.0.0.1)
[03:37:49] [npc:join] bot_11 has joined the server (15:127.0.0.1)
[03:37:49] [npc:join] bot_9 has joined the server (16:127.0.0.1)
[03:37:49] [npc:join] bot_7 has joined the server (17:127.0.0.1)
[03:37:51] [connection] 127.0.0.1:52281 requests connection cookie.
[03:37:52] Incoming connection: 127.0.0.1:52281 id: 18
[03:37:52] [connection] 127.0.0.1:52282 requests connection cookie.
[03:37:52] [npc:join] bot_18 has joined the server (18:127.0.0.1)
[03:37:53] Incoming connection: 127.0.0.1:52282 id: 19
[03:37:53] [npc:join] bot_19 has joined the server (19:127.0.0.1)
* Firstly it flood
* Second connection speed is reduced when using a print()
Reply
#9

hmm try to remove this ?

Код:
new name[MAX_PLAYER_NAME], string1[40+MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	format(string1, sizeof(string1), "[SERVER] %s has joined the server. :)", name);
        SendClientMessageToAll(grey, string1);
Reply
#10

Try to find " has joined the server" on your Gamemode then delete that function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)