SA-MP Forums Archive
NPC SPAWNS AND STANDS [HELP] - 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: NPC SPAWNS AND STANDS [HELP] (/showthread.php?tid=184927)



NPC SPAWNS AND STANDS [HELP] - vakhtang - 22.10.2010

I made recording but NPC spawns at spawn point and stands there Help...


Re: NPC SPAWNS AND STANDS [HELP] - boelie - 22.10.2010

must be something wrong under your onplayerspawn


Re: NPC SPAWNS AND STANDS [HELP] - Badger(new) - 22.10.2010

Are you making the NPC perform something you've recorded?


Re: NPC SPAWNS AND STANDS [HELP] - pushingmyluck - 22.10.2010

Quote:
Originally Posted by Badger(new)
Посмотреть сообщение
Are you making the NPC perform something you've recorded?
pawn Код:
#include <a_samp>

new Bus1;

public OnGameModeInit()
{

    // NPCS
    ConnectNPC("Bus1","bus1");
    Bus1 =  AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 0;

    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"Bus1",true))-you no what to type here all that bla bla bla {
        PutPlayerInVehicle(playerid, Bus1-npc name, 0);
        SetSpawnInfo( playerid,where your npc is going to spawn );
        SetPlayerColor(playerid,0xFFFF00AA- color of npc name);
    }
    return 1;
}
right i hope youget the idea enjoy and make sure you add your npcs to the npcs and filter scripts (some names in the script have to be the name of your recoreding youll worki it out if you cant reply but atleast try


Re: NPC SPAWNS AND STANDS [HELP] - Niixie - 22.10.2010

Offtopic: (JOKE) Are the supposed to sit? LAWL


Re: NPC SPAWNS AND STANDS [HELP] - pushingmyluck - 22.10.2010

Quote:
Originally Posted by Niixie
Посмотреть сообщение
Offtopic: (JOKE) Are the supposed to sit? LAWL
mate dont do that your just trying to boost your posts