16.12.2012, 00:38
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
and that i should add
to this line
to make it
But even after i changed it the NPC is still dissconnecting so i really need help with this please!
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);
}
pawn Код:
&& IsPlayerNPC(playerid)
pawn Код:
if(gPlayerLogged[playerid] == 0)
pawn Код:
if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid))