Jump to content
  • 0

Problema NPC-uri


rpg

Question

Salut!Ma numesc Rapha si am o problema legata de un sistem de autobuze.Am pus FS-urile specifice in folder-ul "filterscripts" si la fel si NPC-urile in folder-ul " npcmodes ".Apoi am modificat la server.cfg linia "filterscripts" si "maxnpc 2" si da urmatoarea eroare...:

[13:06:45] [connection] incoming connection: 127.0.0.1:53922 id: 0
[13:06:45] [connection] incoming connection: 127.0.0.1:53923 id: 1
[13:06:45] [npc:join] BlackBusDriver has joined the server (0:127.0.0.1)
[13:06:45] [npc:join] BlueBusDriver has joined the server (1:127.0.0.1)
[13:06:50] [npc:part] BlueBusDriver has left the server (1:2)
[13:06:50] [npc:part] BlackBusDriver has left the server (0:2)

Am cautat pe net si am vazut ca versiunile de NPC ar diferii de la o versiune la alta de samp,script-ul fiind facut prin 2011 mi se pare.Ce pot face?

Multumesc,

giphy.gif.418e22646746f7065f229917bd9fae15.gif

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
38 minutes ago, rpg said:

Salut!Ma numesc Rapha si am o problema legata de un sistem de autobuze.Am pus FS-urile specifice in folder-ul "filterscripts" si la fel si NPC-urile in folder-ul " npcmodes ".Apoi am modificat la server.cfg linia "filterscripts" si "maxnpc 2" si da urmatoarea eroare...:

[13:06:45] [connection] incoming connection: 127.0.0.1:53922 id: 0
[13:06:45] [connection] incoming connection: 127.0.0.1:53923 id: 1
[13:06:45] [npc:join] BlackBusDriver has joined the server (0:127.0.0.1)
[13:06:45] [npc:join] BlueBusDriver has joined the server (1:127.0.0.1)
[13:06:50] [npc:part] BlueBusDriver has left the server (1:2)
[13:06:50] [npc:part] BlackBusDriver has left the server (0:2)

Am cautat pe net si am vazut ca versiunile de NPC ar diferii de la o versiune la alta de samp,script-ul fiind facut prin 2011 mi se pare.Ce pot face?

Multumesc,

Mda,m-am mai uitat putin pe net si am modificat in GM principal urmatoarele lucruri:

De la:

if(gPlayerLogged[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
        Kick(playerid);
        return 1;
     }

la:

if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))

 

Acum problema e ca nu-si urmeaza traseul si stau mereu la mijlocul hartii autobuzele...(desi am testat sistemul intr-un Grand Lacerny si mergea bine...)

Ce as putea face in continuare?Ce ar trebuii sa modific in GM ca sa se spawneze normal?

Edited by rpg

giphy.gif.418e22646746f7065f229917bd9fae15.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.