SA-MP Forums Archive
bus system(+rep) - 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: bus system(+rep) (/showthread.php?tid=364093)



bus system(+rep) - Chris_Morrison - 29.07.2012

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?


Re: bus system(+rep) - MegadreamsBE - 29.07.2012

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


Re : bus system(+rep) - BigBaws - 29.07.2012

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


Re: bus system(+rep) - TheDeath - 29.07.2012

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


Re: Re : bus system(+rep) - Chris_Morrison - 29.07.2012

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


Re: bus system(+rep) - MegadreamsBE - 29.07.2012

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.


Re: bus system(+rep) - Chris_Morrison - 29.07.2012

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


Re: bus system(+rep) - [MK]Man_Deep - 29.07.2012

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


Re: bus system(+rep) - MegadreamsBE - 29.07.2012

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??


Re : Re: bus system(+rep) - BigBaws - 29.07.2012

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 )