Bus System dosnt work..
#1

Hello guys..
I am using [NPC]Bus System Filterscript that is made by Adil but the NPC drivers spawns and then gets dissconnected please help me! I was told that the problem is in here
pawn Код:
public OnPlayerSpawn(playerid)
{
   
    SetRealMoney(playerid, ScriptMoney[playerid]);
    new pName[MAX_PLAYER_NAME];
    new string[128];
    InitLockDoors(playerid);
    if(IsPlayerNPC(playerid)) return 1;
    STDPlayer[playerid] = 0;
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
        gTeam[playerid] = 3;
    }
    if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid))
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
        Kick(playerid);
    }
and that i should add
pawn Код:
&& IsPlayerNPC(playerid)
to this line
pawn Код:
if(gPlayerLogged[playerid] == 0)
to make it
pawn Код:
if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid))
But even after i changed it the NPC is still dissconnecting so i really need help with this please!
Reply


Messages In This Thread
Bus System dosnt work.. - by Don_Cage - 16.12.2012, 00:38
Re: Bus System dosnt work.. - by CyNiC - 16.12.2012, 00:53
Re: Bus System dosnt work.. - by willsuckformoney - 16.12.2012, 00:57
Re: Bus System dosnt work.. - by Don_Cage - 16.12.2012, 01:02
Re: Bus System dosnt work.. - by willsuckformoney - 16.12.2012, 01:08
Re: Bus System dosnt work.. - by maramizo - 16.12.2012, 01:21
Re: Bus System dosnt work.. - by Don_Cage - 16.12.2012, 01:43
Re: Bus System dosnt work.. - by CyNiC - 16.12.2012, 01:50
Re: Bus System dosnt work.. - by Don_Cage - 16.12.2012, 02:01
Re: Bus System dosnt work.. - by maramizo - 16.12.2012, 02:05

Forum Jump:


Users browsing this thread: 3 Guest(s)