Jump to content

Question

Posted

salut..

deci asta E in Fs [pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

#define FILTERSCRIPT

#include <a_samp>

new bus;

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{

ConnectNPC("Lorenzo", "dave");

bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999);

}

#else

main()

{

print("\n----------------------------------");

print(" Blank Gamemode by your name here");

print("----------------------------------\n");

}

#endif

public OnPlayerSpawn(playerid)

{

    if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC

    {

        new npcname[MAX_PLAYER_NAME];

        GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului

        if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME"

        {

            PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul

        }

    }

return 1;

}

public OnPlayerDisconnect(playerid, reason)

{

return 1;

}

[/pawn]

asta este FS . nume [pawn]npc[/pawn]

acesta este in folderu npcmodes

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

#define FILTERSCRIPT

#include <a_samp>

new bus;

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{

ConnectNPC("Lorenzo", "dave");

bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999);

}

#else

main()

{

print("\n----------------------------------");

print(" Blank Gamemode by your name here");

print("----------------------------------\n");

}

#endif

public OnPlayerSpawn(playerid)

{

    if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC

    {

        new npcname[MAX_PLAYER_NAME];

        GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului

        if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME"

        {

            PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul

        }

    }

return 1;

}

public OnPlayerDisconnect(playerid, reason)

{

return 1;

}

[/pawn]  nume [pawn]Lorenzo[/pawn]

si mai am fiseru dave.rec in [pawn]recordings[/pawn]

deci intra pe svr numai ca mil da pe un camp .el trebuia sa conduca.

cum rezolv?

P.S Puteti da lock la celelate topicuri ale mele legate de npc

1 answer to this question

Recommended Posts

Posted

N-ai urmat bine tutorialul, fa-l iar si nu mai pune intrebarea asta de o mie de ori.

Warn 20% pentru ca ai creeat topic cu asta de mai multe ori.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.