Invibisble npc
#1

Hey, i've began to put an npc in my gamemode which should be invisible for players, due to ID 0 getting bugged sometimes with ZCMD, so i took the Idlenpc, and placed it ongamemodeinit.
ConnectNPC("John", "npcidle");

Now, the npc spawns imiddiately nd i dont want the npc to spawn since the npc shouldn't be visible to players.
I've tried the following onplayerspawn
if(IsPlayerNPC(playerid))
{
SetPlayerInterior(playerid, 9999);
}

But unfortunately he just spawned in the game again.
Does anyone have an idea on how to fix this lol.
Reply


Messages In This Thread
Invibisble npc - by yvoms - 23.01.2016, 12:47
Re: Invibisble npc - by Arshman - 23.01.2016, 12:53
Re: Invibisble npc - by yvoms - 23.01.2016, 12:59
Re: Invibisble npc - by Arshman - 23.01.2016, 13:05
Re: Invibisble npc - by yvoms - 23.01.2016, 13:13
Re: Invibisble npc - by Arshman - 23.01.2016, 13:31
Re: Invibisble npc - by yvoms - 23.01.2016, 13:44
Re: Invibisble npc - by yvoms - 24.01.2016, 11:21
Re: Invibisble npc - by yvoms - 25.01.2016, 20:56
Re: Invibisble npc - by Champagne - 25.01.2016, 21:00

Forum Jump:


Users browsing this thread: 2 Guest(s)