NPC not connecting
#11

oke first sorry bad english
Add your npcs in your gamemode not fs i have the same problem i have fixed with it

//place this ont te beginnig of your script
new Bot1Vehicle;
new Bot2Vehicle;
new Bot3Vehicle;

//under gamemode init
ConnectNPC("TrainLV","train_lv");
ConnectNPC("TrainSF","train_sf");
ConnectNPC("TrainLS","train_ls");

Bot1Vehicle = CreateVehicle(449, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
Bot2Vehicle = CreateVehicle(449, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
Bot3Vehicle = CreateVehicle(449, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);

//under on player spawn

if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));

if(!strcmp(npcname, "TrainLV", true))return PutPlayerInVehicle(playerid, Bot1Vehicle, 0);

if(!strcmp(npcname, "TrainSF", true))return PutPlayerInVehicle(playerid, Bot2Vehicle, 0);

if(!strcmp(npcname, "TrainLS", true))return PutPlayerInVehicle(playerid, Bot3Vehicle, 0);
}

//now it works i mean else sorry
grezz nate


Bonus-----------------------------------------------------------------------------

//place this ont te beginnig of your script
forward NpcBubble();

//under gamemode init
SetTimer("NpcBubble", 5000, 1);

//end of script
public NpcBubble()
{
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerNPC(playerid))
{
new bubbles[25];
format(bubbles,sizeof(bubbles),"[BOT]Driver");
SetPlayerChatBubble(playerid,bubbles,0x33CCFFAA,50 0,7000);
SetPlayerColor(playerid,0x33CCFFAA);
}
}
}
Reply


Messages In This Thread
NPC not connecting - by acade - 03.04.2010, 22:53
Re: NPC not connecting - by WardenCS - 03.04.2010, 22:55
Re: NPC not connecting - by acade - 03.04.2010, 22:56
Re: NPC not connecting - by acade - 04.04.2010, 22:52
Re: NPC not connecting - by Beaver07 - 04.04.2010, 23:56
Re: NPC not connecting - by acade - 05.04.2010, 20:27
Re: NPC not connecting - by Aygem - 05.04.2010, 20:47
Re: NPC not connecting - by acade - 05.04.2010, 20:58
Re: NPC not connecting - by acade - 06.04.2010, 16:48
Re: NPC not connecting - by Dreftas - 06.04.2010, 17:07
Re: NPC not connecting - by nateskywalker - 06.04.2010, 19:38

Forum Jump:


Users browsing this thread: 3 Guest(s)