22.10.2010, 14:38
I made recording but NPC spawns at spawn point and stands there
Help...

#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;
}