[00:30:57] [npc:join] NAME has joined the server (0:127.0.0.1)
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 |
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.
|
publics OnPlayerConnect(playerid) { if (IsPlayerNPC(playerid)) return 0; //no work. return 1; }
You can use fixes.inc to prevent spam of joining and exiting messages. Like ddos prevented
|
[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)
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);