SA-MP Forums Archive
Please need Help - 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: Please need Help (/showthread.php?tid=334281)



Please need Help - ReVenGe1 - 14.04.2012

I am tring to create my own NPC to my server But I Can't Succed
My Server Have A Password {you need to enter a password to join or to register} i can see that my npc is joining the server But It's Not Spawning
Plz Help ME
sorry For my bad english
Thanks


Re: Please need Help - park4bmx - 14.04.2012

your using OnNPCSpawn right ?
list of all NPC callbacks/functions
https://sampwiki.blast.hk/wiki/Category:NPC


Re: Please need Help - Marco_Valentine - 14.04.2012

On player connect:

Код:
if(IsPlayerNPC(playerid)){ SpawnPlayer(playerid); }



Re: Please need Help - ReVenGe1 - 15.04.2012

Quote:
Originally Posted by Marco_Valentine
Посмотреть сообщение
On player connect:

Код:
if(IsPlayerNPC(playerid)){ SpawnPlayer(playerid); }
Oh Come On Man My Npc Is Joining The Server But It's Not let Him Spawn
My Server Have a Login And Registeration System
Can You Help Me !
Thanks


Re: Please need Help - ReVenGe1 - 15.04.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
your using OnNPCSpawn right ?
list of all NPC callbacks/functions
https://sampwiki.blast.hk/wiki/Category:NPC
No I'm Not Using OnNPCSpawn
My NPC is Joining The Server But It's Not Spawn


Re: Please need Help - ReVenGe1 - 15.04.2012

http://pastebin.com/n6fr8CJr tHIS IS MY SCRIPT


Re: Please need Help - Joe Staff - 15.04.2012

It has been a while since I've messed with NPCs, but last I checked you need to let the NPC pass introduction callbacks such as OnPlayerConnect and OnPlayerSelectClass