SA-MP Forums Archive
[HELP]need help with the 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]need help with the npc (/showthread.php?tid=156341)



[HELP]need help with the npc - AK47317 - 22.06.2010

hello ,

i asking u guys for help a little, i have script npc that is in vehicle, but the npc always stand at the spawn point and another npc on foot is working well but idk why its not moving on vehicle. plz help


Re: [HELP]need help with the npc - ted80 - 22.06.2010

do you have done this?
Код:
PutPlayerInVehicle(playerid, vehicleid, 0);
maybe this can help you:
http://forum.sa-mp.com/index.php?topic=135284.0


Re: [HELP]need help with the npc - ted80 - 22.06.2010

and change:
PLAYER_RECORDING_TYPE_ONFOOT
to
PLAYER_RECORDING_TYPE_DRIVER


Re: [HELP]need help with the npc - DJDhan - 22.06.2010

Show me the NPC code you put in the Filterscript Folder/added in the GM so that I can help.


Re: [HELP]need help with the npc - titanak - 22.06.2010

pawn Код:
new yourcar;

public OnGameModeInit()
{

    yourcar = AddStaticVehicle(BLLA ABLALALA);
   
    return 1;
}

public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0;
    PutPlayerInVehicle(playerid, yourcar, 0);
  return 1;
}



Re: [HELP]need help with the npc - AK47317 - 23.06.2010

,
well i already have put PutPlayerInVehicle(bla bla bla) but its still at spawn point