Help about LS Bus System -
PRoleplay - 30.11.2012
i need help when i used this script the bus stuck in Blueberry and not run
Heres the Link of the FS:
https://sampforum.blast.hk/showthread.php?tid=275695
i already put this on my OnPlayerSpawn
PHP код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Bus_Driver", true))
{
PutPlayerInVehicle(playerid, BusDriverVehicle, 0);
}
if(!strcmp(npcname, "Bus_Driver2", true))
{
PutPlayerInVehicle(playerid, BusDriverVehicle2, 0);
return 1;
}
return 1;
}
and this on my OnGameModInit
PHP код:
ConnectNPC("Bus_Driver","bus");
BusDriverVehicle = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 3, 3, -1);
ConnectNPC("Bus_Driver2","bus2");
BusDriverVehicle2 = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 3, 3, -1)
My Problem is the blue bus and black bus is always stuck in blueberry
thanks in advance
Re: Help about LS Bus System -
NumbSkull - 30.11.2012
your drivers probably disconected put a print function in on the npc disconect to return their name if they crash to check
Re: Help about LS Bus System -
PRoleplay - 30.11.2012
sorry but i dont know how im new in scripting
Re: Help about LS Bus System -
NumbSkull - 30.11.2012
pawn Код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Bus_Driver", true))
{
printf("npc spawned");
PutPlayerInVehicle(playerid, BusDriverVehicle, 0);
}
if(!strcmp(npcname, "Bus_Driver2", true))
{
printf("npc spawned");
PutPlayerInVehicle(playerid, BusDriverVehicle2, 0);
return 1;
}
return 1;
}
that will show if they actualy spawn in the first place
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Bus_Driver", true))
{
printf("npc crashed");
}
if(!strcmp(npcname, "Bus_Driver2", true))
{
printf("npc crashed");
}
return 1;
}
}
that should show if they crashed
Re: Help about LS Bus System -
PRoleplay - 01.12.2012
Bro thanks for your time and for the quick reply
but i think the bus driver is not crash or DC coz i check the server logs and find the printf NPC Crashed and there is nothing like that
but my bus always spawn at blueberry >,<
Re: Help about LS Bus System -
PRoleplay - 01.12.2012
upp..
Re: Help about LS Bus System -
Arpatos - 01.12.2012
upp please same problem !
Re: Help about LS Bus System -
Arpatos - 01.12.2012
up !
Re: Help about LS Bus System -
PRoleplay - 01.12.2012
Quote:
Originally Posted by Arpatos
upp please same problem !
|
yah help us please ....
Re: Help about LS Bus System -
PRoleplay - 02.12.2012
upp again ...