Help about LS Bus System
#4

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
Reply


Messages In This Thread
Help about LS Bus System - by PRoleplay - 30.11.2012, 19:13
Re: Help about LS Bus System - by NumbSkull - 30.11.2012, 19:19
Re: Help about LS Bus System - by PRoleplay - 30.11.2012, 19:25
Re: Help about LS Bus System - by NumbSkull - 30.11.2012, 19:34
Re: Help about LS Bus System - by PRoleplay - 01.12.2012, 06:28
Re: Help about LS Bus System - by PRoleplay - 01.12.2012, 11:47
Re: Help about LS Bus System - by Arpatos - 01.12.2012, 15:42
Re: Help about LS Bus System - by Arpatos - 01.12.2012, 17:30
Re: Help about LS Bus System - by PRoleplay - 01.12.2012, 17:41
Re: Help about LS Bus System - by PRoleplay - 02.12.2012, 06:48

Forum Jump:


Users browsing this thread: 1 Guest(s)