How to stop the need for NPC's to login - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to stop the need for NPC's to login (
/showthread.php?tid=108818)
How to stop the need for NPC's to login -
[WF]Demon - 16.11.2009
Hello i have created a bus driver bot it works on grandlarc but not my LARP (gf i think) script wont let it in its forcing it to login i was wondering if there was something like a line to add to make this stop? and where to put it?
HELP ME!
Re: How to stop the need for NPC's to login -
Donuts - 16.11.2009
In your gamemode put an if statement in each spawn-related function/callback.
Example:
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 0;
// You code here.
}
Same with OnPlayerSpawn, etc.
Re: How to stop the need for NPC's to login -
[WF]Demon - 16.11.2009
im not sure where to put these i get errors the compiler stops working as there is 44692 lines in LARP its not so easy if someone could help me maybe a video? idk this script is big plus this is in a Filterscript im not sure if i said my users MSN Messenger :
codybeer456@aol.com Xfire : hg4life
ADD ME OR HELP ME ADD THIS CODE (no im not commanding)
Re: How to stop the need for NPC's to login -
[WF]Demon - 16.11.2009
BTW what happens is this (kinda obvious)
Incomming Connection: 127.0.0.1:50112
[npc:join] David has joined the server
[npc
art] David has left the server
PIC :
Re: How to stop the need for NPC's to login -
dugi - 16.11.2009
pawn Код:
if(IsPlayerNPC(playerid)) return 0;
You should put this before the login code, and if you still don't know how to do it then you shouldn't start scripting if you don't know the basics.