Jump to content
  • 0

Skin NPC ... Ajutor


mura

Question

Deci am urmatorul cod pt pwn

#include <a_samp>

new NPCvehicle;

public OnGameModeInit()

{

    ConnectNPC("Train", "Train");

    NPCvehicle = CreateVehicle(537, 0.0, 0.0, 0.0, 0.0, -1, -1, 1000);

    return 1;

}

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, "Train", true)) //Verificam daca numele NPCului este "NUME"

        {

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

        }

        return 1;

    }

    //Celelalte lucruri din OnPlayerSpawn

    return 1;

}

unde adaug skin-ul la npc ...si care e codul?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.