How to stop the need for NPC's to login
#2

In your gamemode put an if statement in each spawn-related function/callback.
Example:
pawn Код:
public OnPlayerConnect(playerid)
{
   if(IsPlayerNPC(playerid)) return 0;
   // You code here.
}
Same with OnPlayerSpawn, etc.
Reply


Messages In This Thread
How to stop the need for NPC's to login - by [WF]Demon - 16.11.2009, 01:27
Re: How to stop the need for NPC's to login - by Donuts - 16.11.2009, 04:23
Re: How to stop the need for NPC's to login - by [WF]Demon - 16.11.2009, 11:37
Re: How to stop the need for NPC's to login - by [WF]Demon - 16.11.2009, 11:53
Re: How to stop the need for NPC's to login - by dugi - 16.11.2009, 15:48

Forum Jump:


Users browsing this thread: 5 Guest(s)