SA-MP Forums Archive
npc left the server pls help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: npc left the server pls help! (/showthread.php?tid=386955)



npc left the server pls help! - Kevin12341 - 22.10.2012

SA-MP Dedicated Server
----------------------
v0.3e-R2, ©2005-2012 SA-MP Team

[19:03:35]
[19:03:35] Server Plugins
[19:03:35] --------------
[19:03:35] Loading plugin: streamer
[19:03:35]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[19:03:35] Loaded.
[19:03:35] Loading plugin: audio
[19:03:35]

*** Audio Plugin v0.4 by Incognito loaded ***


[19:03:35] Loaded.
[19:03:35] Loaded 2 plugins.

[19:03:36]
[19:03:36] Filterscripts
[19:03:36] ---------------
[19:03:36] Loading filterscript 'npc_record.amx'...
[19:03:36] Loaded 1 filterscripts.

[19:03:36] '30' Fraktionsfahrzeuge wurden geladen & erstellt.
[19:03:36] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[19:03:36] Pickups Max = 2048, Current Pickups = 456
[19:03:36] _______________________________________
[19:03:36] Das Script wurde Vollstдndig geladen!
[19:03:36] Reallife City
[19:03:36] _______________________________________
[19:03:36]
[19:03:36] Number of vehicle models: 84
[19:03:36] Incoming connection: 127.0.0.1:3610
[19:03:36] Incoming connection: 127.0.0.1:3611
[19:03:36] [npc:join] testrecord has joined the server (0:127.0.0.1)
[19:03:41] [npcart] testrecord has left the server (0:2)
[19:03:41] Incoming connection: 127.0.0.1:3642
[19:03:41] Incoming connection: 127.0.0.1:3643
[19:03:41] [npc:join] testrecord has joined the server (0:127.0.0.1)
[19:03:44] --- Server Shutting Down.
[19:03:44] [npcart] testrecord has left the server (0:0)
[19:03:44]



the npc left the server --> incomming connection pls help mfg kevin


Re: npc left the server pls help! - Riddick94 - 22.10.2012

Show yours server.cfg file.


AW: npc left the server pls help! - Kevin12341 - 22.10.2012

echo Executing Server Config...
lanmode 0
rcon_password ////////
maxplayers 1
port 7777
hostname German Streets Roleplay
gamemode0 ReallifeCity
filterscripts npc_record
plugins streamer audio
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000


Re: npc left the server pls help! - Riddick94 - 22.10.2012

Where's yours maxnpc line?


Re: npc left the server pls help! - Adil - 22.10.2012

put a new line in your server.cfg
Код:
maxnpc 10
otherwise your server is kicking the player when it connects. Have you made the script NPC compatible yet?


AW: npc left the server pls help! - Kevin12341 - 22.10.2012

ou sorry is not the full server.cfg

here:
echo Executing Server Config...
lanmode 0
rcon_password 1998
maxplayers 20000
port 7777
hostname German Streets Roleplay
gamemode0 ReallifeCity
filterscripts npc_record Blinker
plugins streamer audio
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 10
logtimeformat [%H:%M:%S]


Re: npc left the server pls help! - gtakillerIV - 22.10.2012

Make sure your login/register system is not kicking him.


Re: npc left the server pls help! - Forever Alone - 22.10.2012

Maybe it was just bored and didnt felt like playing =D

Looking at the connect and disconnect times I see, that NPC cant pass login screen(whatever) and your gamemode kicks it.
Edit: Gtakiller beated me


AW: npc left the server pls help! - Kevin12341 - 22.10.2012

can everyone send me a code what i paste it in my gamemode? (sorry my english is bad)

or what i paste to kick him not?

please help^^


AW: npc left the server pls help! - Kevin12341 - 22.10.2012

if(IsPlayerNPC(playerid))return 1;

this?
to onplayerconnect?