Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
How?
Fernado
Little Clucker
Posts: 39
Threads: 11
Joined: Sep 2012
Reputation:
0
#1
20.09.2012, 00:59
how can i connect a npc to the server through filterscript (without adding the functions in gamemode)?
EDIT: driving npc
Find
Reply
Blasphemy
Little Clucker
Posts: 21
Threads: 2
Joined: Sep 2012
Reputation:
0
#2
20.09.2012, 01:24
Unless you have a filterscript loading the NPC script, the functions are needed in the gamemode to both load/run and communicate with the NPC script.
Find
Reply
clarencecuzz
Gangsta
Posts: 930
Threads: 7
Joined: Jul 2010
Reputation:
0
#3
20.09.2012, 06:36
If your gamemode involves registering and logging in to be able to spawn etc., then I suggest you add the following line to your login system:
pawn Код:
if
(
!
IsPlayerNPC
(
playerid
)
)
That way, NPCs will be able to bypass the login.
I've never tried before, but I'm sure you can connect NPCs by using the function
ConnectNPC
https://sampwiki.blast.hk/wiki/ConnectNPC
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help