SA-MP Forums Archive
Problemes NPC ! Help Me - 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: Problemes NPC ! Help Me (/showthread.php?tid=105247)



Problemes NPC ! Help Me - labiloute - 28.10.2009

Hello everyone, Here I created bots but the problem is that a time one of the stops and goes on the roof of the bus, while another bus works very well, as if the other became invisible when I do /goto ID can be seen moving but invisibly!

Screen:
http://www.casimages.com/img.php?i=0...4051389699.png

Script FS:
Код:
#include <a_samp>

new Bus_1;
new Bus_2;

public OnGameModeInit()
{

	// NPCS
	ConnectNPC("Bus_1","bus");
	ConnectNPC("Bus_2","bus2");
	
 	Bus_1 =	AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59); // bus1
 	Bus_2 =	AddStaticVehicle(431,-2242.7822,523.9103,35.2758,359.7419,75,59); // bus1
	return 1;
}

public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script

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

 	if(!strcmp(playername,"Bus_1",true)) {
    PutPlayerInVehicle(playerid, Bus_1, 0);
    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
    ShowPlayerMarkers(0);
	}
	else if(!strcmp(playername,"Bus_2",true)) {
    PutPlayerInVehicle(playerid, Bus_2, 0);
    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
    ShowPlayerMarkers(0);
	}
  return 1;
}
Help me please, thank you in advance

EDIT : GM LARP


Re: Problemes NPC ! Help Me - GaGlets(R) - 28.10.2009

i have the same problem (bots all time respawns in car etc but car going well


Re: Problemes NPC ! Help Me - Mauri - 05.01.2010

I think thats a regular problem :S