NPC Problems - 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)
+---- Forum: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: NPC Problems (
/showthread.php?tid=621583)
NPC Problems -
StRaphael - 12.11.2016
Hello!I am trying to add a bus system to my RPG server.When I putted the FS(filterscript) and records I started my server and bots still stay in the middle of map and after few seconds(that's probably login/register system which work with mySQL database)they are kicked.I was trying on a blank gm(Grand Lacerny GM) and works fine.
What could I do?
Re: NPC Problems -
coool - 26.12.2016
Put a
Quote:
If (!IsPlayerNPC(playerid))
|
Before your login or registery setup
Re: NPC Problems -
Spmn - 27.12.2016
Actually, put:
Code:
If (!IsPlayerNPC(playerid)) return 1;
At the beginning of callbacks where you call login/register procedure or any other thing that must interact with player. (eg: OnPlayerConnect, OnPlayerRequestClass, OnPlayerRequestSpawn, OnPlayerSpawn etc)
Re: NPC Problems -
StRaphael - 29.12.2016
Quote:
Originally Posted by coool
Put a
Before your login or registery setup
|
Quote:
Originally Posted by Spmn
Actually, put:
Code:
If (!IsPlayerNPC(playerid)) return 1;
At the beginning of callbacks where you call login/register procedure or any other thing that must interact with player. (eg: OnPlayerConnect, OnPlayerRequestClass, OnPlayerRequestSpawn, OnPlayerSpawn etc)
|
thanks all...I found the solution about 1 month ago