SA-MP Forums Archive
Help NPC - 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 (/showthread.php?tid=276956)



Help NPC - JonathanFeitosa - 15.08.2011

So today I came Stir with a single NPC, But He Does not Connect What Type Shit.

npcmodes/recordings I Stopped. - Name: "SpawnCivil".
й o .pwn й .amx npcmodes. Name - "BotJFS", look:
pawn Код:
#include <a_npc>
#define RECORDING "SpawnCivil"
#define RECORDING_TYPE 2
main(){}
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
is My FilterScript It Connect It, See my FilterScript
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
    ConnectNPC("BotJFS","SpawnCivil");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(IsPlayerNPC(playerid))
    {
        if(!strcmp(npcname, "BotJFS", true))
        {
            ApplyAnimation(playerid,"DANCING","bd_clap",4.1,0,1,1,1,1);
            SetPlayerSkin(playerid, 246);
        }
    }
    return 1;
}
I could not say because he appears?

I wanted an NPC type Stop Dancing With Skin 246.

I used the translator, sorry for the mistakes. D: