NPC problem . (+1rep) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC problem . (+1rep) (
/showthread.php?tid=324882)
NPC problem . (+1rep) -
whcool - 11.03.2012
Hello..
today I have made a npc script, which became the Problem of the 0admin system he have register and login .. so how to make my npc do not suck register and login and continue to enter..I'm tired of looking for solutions in 0admin script .. but can not find ..
thanks..
sorry for bad english .
Re: NPC problem . (+1rep) -
Andi_Evandy - 11.03.2012
Try to put:
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
under OnPlayerConnect.
Example:
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
//Your code here
}
hope it works
Re: NPC problem . (+1rep) -
whcool - 11.03.2012
i have fix the problem with myself ,tq for giving idea.