How to stop the need for NPC's to login
#1

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!
Reply
#2

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.
Reply
#3

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)
Reply
#4

BTW what happens is this (kinda obvious)
Incomming Connection: 127.0.0.1:50112
[npc:join] David has joined the server
[npcart] David has left the server

PIC :
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)