NPC.. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC.. (
/showthread.php?tid=234229)
NPC.. -
Gh0sT_ - 03.03.2011
ok, this problem is annoynin' me..
If doin check with if( IsPlayerNPC( playerid ) ) return false; the NPC connects, but I can't see him ingame.. If I return true - NPC connects, and disconnects after ~5secs. maxnpc - 5.. no pssw.
Re: NPC.. -
HyperZ - 03.03.2011
OnPlayerSpawn:
pawn Код:
if(!IsPlayerNPC(playerid)) return 1;
Re: NPC.. -
Gh0sT_ - 03.03.2011
Aha, there is a lot of another script for normal players..
Re: NPC.. -
Sasino97 - 03.03.2011
Quote:
Originally Posted by Clive
OnPlayerSpawn:
pawn Код:
if(!IsPlayerNPC(playerid)) return 1;
|
OnPlayerConnect and OnPlayerSpawn:
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Re: NPC.. -
Gh0sT_ - 03.03.2011
Quote:
Originally Posted by [GF]Sasino97
OnPlayerConnect and OnPlayerSpawn:
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
|
already done
Re: NPC.. -
Mean - 03.03.2011
You are returning FALSE in OnPlayerRequestSpawn for NPCs? Use return true in OnPlayerRequestClass, because false prevents player from spawning, and 1 lets the player to spawn.
Re: NPC.. -
Gh0sT_ - 04.03.2011
Im returning true in almost all callbacks..