[16:42:04] Incoming connection: 127.0.0.1:3291 [16:42:04] [npc:join] Taxi1 has joined the server (0:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3292 [16:42:04] [npc:join] Taxi2 has joined the server (1:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3293 [16:42:04] [npc:join] Taxi3 has joined the server (2:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3294 [16:42:04] [npc:join] Taxi4 has joined the server (3:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3295 [16:42:04] [npc:join] PoliceMan has joined the server (4:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3296 [16:42:04] [npc:join] Sweeper has joined the server (5:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3297 [16:42:04] [npc:join] PoliceBiker has joined the server (6:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3298 [16:42:04] [npc:join] Pilot has joined the server (7:127.0.0.1) [16:42:04] Incoming connection: 127.0.0.1:3299 [16:42:04] Incoming connection: 127.0.0.1:3300 [16:42:04] Incoming connection: 127.0.0.1:3304 [16:42:04] Incoming connection: 127.0.0.1:3305 [16:42:06] [npc:part] Taxi1 has left the server (0:2) [16:42:06] [npc:part] Taxi2 has left the server (1:2) [16:42:06] [npc:part] Taxi3 has left the server (2:2) [16:42:06] [npc:part] Taxi4 has left the server (3:2) [16:42:06] [npc:part] PoliceMan has left the server (4:2) [16:42:06] [npc:part] Sweeper has left the server (5:2) [16:42:06] [npc:part] PoliceBiker has left the server (6:2) [16:42:06] [npc:part] Pilot has left the server (7:2)
public OnPlayerConnect(playerid)
{
//bunch of things here
Originally Posted by Zeros
Help but they have a NPC after 1 sec disconekt, what should I do? Server we have / login system which the NPC can do that in server?
|
// Blah blah code here if(!IsPlayerNPC(playerid)) { // Code Here, this part is if the player -IS NOT- an NPC. } return 1; // Blah blah code here
IsPlayerNPC
!
IsPlayerNPC