SA-MP Forums Archive
[Help] NPC problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] NPC problem (/showthread.php?tid=268652)



[Help] NPC problem - Kenka - 13.07.2011

I'm looking for some help with this problem:

[ame]http://www.youtube.com/watch?v=4MHRzTtyWIM[/ame]








And also i need help creating IDLE NPC who apply animation when i buy something like this :


Код:
This is where i press "vali" and he gives me HP

Код:
and player applys eating animation :

Код:
This is where my IDLE NPC should stand



Re: [Help] NPC problem - Kenka - 13.07.2011

Yo, still need help ;(


Re: [Help] NPC problem - Kenka - 14.07.2011

Still need help..


Re: [Help] NPC problem - Markx - 14.07.2011

We cannot help you without the script.


Re: [Help] NPC problem - whitedragon - 14.07.2011

But when you put only bot number 2 it work?


Re: [Help] NPC problem - Kenka - 15.07.2011

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Busdriver", true))
        {
            PutPlayerInVehicle(playerid, Keeris, 0);
            SetPlayerSkin(playerid, 255);
            ResetPlayerWeapons(playerid);
            return 1;
        }
        if(!strcmp(npcname, "Busdriver2", true))
        {
            PutPlayerInVehicle(playerid, Kala2, 0);
            SetPlayerSkin(playerid, 255);
            ResetPlayerWeapons(playerid);
            return 1;
        }
        return 1;
    }
pawn Код:
public OnGameModeInit()
{
    ConnectNPC("Busdriver","Bus");
    ConnectNPC("Busdriver2","Bus2");
pawn Код:
Keeris = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000); // BussijuhtNPC 102
    Kala2 = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000); // BussijuhtNPC2 103
pawn Код:
new Keeris;
new Kala2;

And yes, when i change their appearing like Bot 2 before Bot 1 then Bot 2 is working and the other one is not


Re: [Help] NPC problem - Kenka - 21.07.2011

Still need help!!:


Re: [Help] NPC problem - Memoryz - 21.07.2011

This could potentially be a problem with the recordings, have you tried to re-record the bus that's bugging out?