13.10.2016, 14:29
So guys I'm making a NPC system and I have a problem...
I want an NPC to drive a bus through the city so i made a recording and i made a code for the npc to connect and enter the vehicle (bus) but it doesn't seem that he is connecting at all idk why...
I checked in my script if there is like if(IsNPC(playerid)) return 0; but I didn't find it.
Here is the code:
I want an NPC to drive a bus through the city so i made a recording and i made a code for the npc to connect and enter the vehicle (bus) but it doesn't seem that he is connecting at all idk why...
I checked in my script if there is like if(IsNPC(playerid)) return 0; but I didn't find it.
Here is the code:
Код:
//Under a timer (5 sec) that calls when gamemode starts.. ConnectNPC("BusVozac", "BuS"); //Under public OnPlayerConnect if(IsPlayerNPC(playerid)) { printf("NPC: Connection is allowed."); return 1; }