bus system(+rep)
#1

Hello.
I'm using the adil's bus system and i have this problem on the server start
I got a problem

Код:
[09:30:48] [npc:join] BlueBusDriver has joined the server (0:127.0.0.1)
[09:30:48] [npc:part] BlueBusDriver has left the server (0:2)
[09:30:48] [npc:join] BlackBusDriver has joined the server (1:127.0.0.1)
[09:30:48] [npc:part] BlackBusDriver has left the server (1:2)
And the buses spawns at Blueberry(farm)
What to do?
Reply
#2

Leave type 2, so they are kicked. Do you run any script that kicks them?
Reply
#3

You should Make On your script NPc connect To Detected it so they will not be Auto kicked ( Rep if i helped you )
Reply
#4

Try this:
Go to server.cfg
And there change
maxnpc 2
Reply
#5

Quote:
Originally Posted by BigBaws
Посмотреть сообщение
You should Make On your script NPc connect To Detected it so they will not be Auto kicked ( Rep if i helped you )
I don't understand how to do that
Reply
#6

Quote:
Originally Posted by TheDeath
Посмотреть сообщение
Try this:
Go to server.cfg
And there change
maxnpc 2
They won't even join if you didn't do that.
Reply
#7

Quote:
Originally Posted by MegadreamsBE
Посмотреть сообщение
They won't even join if you didn't do that.
Did already
Reply
#8

Try Something Else (Rep+ if i Really Helped You)
Reply
#9

That's what i said. Anyways you have to create a script (filterscript or in the gamemode) which makes the npc's spawn. Otherwise they won't stay in the server.

Something like this (copy from gl_npcs):

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(!IsPlayerNPC(playerid)) return 0;
   
    new playername[64];
    GetPlayerName(playerid,playername,sizeof(playername));

    if(!strcmp(playername,"NPC1",true)) {
        SetSpawnInfo(playerid,69,255,0.0,0.0,10.0,0.0,-1,-1,-1,-1,-1,-1);
    }
        return 0;
}
NOTE: The NPC check is only if you create a filterscript, you don't want your players to get ignored ofcourse!
@Above: are you serious asking for a rep+ if you didn't even help him??
Reply
#10

Quote:
Originally Posted by MegadreamsBE
Посмотреть сообщение
That's what i said. Anyways you have to create a script (filterscript or in the gamemode) which makes the npc's spawn. Otherwise they won't stay in the server.

Something like this (copy from gl_npcs):

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(!IsPlayerNPC(playerid)) return 0;
   
    new playername[64];
    GetPlayerName(playerid,playername,sizeof(playername));

    if(!strcmp(playername,"NPC1",true)) {
        SetSpawnInfo(playerid,69,255,0.0,0.0,10.0,0.0,-1,-1,-1,-1,-1,-1);
    }
        return 0;
}
NOTE: The NPC check is only if you create a filterscript, you don't want your players to get ignored ofcourse!
@Above: are you serious asking for a rep+ if you didn't even help him??
thats what i want to mean (rep+ if we helped you )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)