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 to create Npc and tell where the npc should spawn??
telefatguy88
Little Clucker
Posts: 34
Threads: 7
Joined: Jun 2011
Reputation:
0
#1
10.12.2011, 22:12
The title is the question
Find
Reply
[MG]Dimi
High-roller
Posts: 1,239
Threads: 16
Joined: Mar 2011
Reputation:
0
#2
10.12.2011, 22:15
https://sampforum.blast.hk/showthread.php?tid=95034
And if you want to set his position (which is kinda useless since it will load info from file) use
pawn Код:
public
OnPlayerSpawn
(
playerid
)
{
if
(
IsPlayerNPC
(
playerid
)
)
SetPlayerPos
(
playerid,x,y,z
)
;
return
1
;
}
Find
Reply
telefatguy88
Little Clucker
Posts: 34
Threads: 7
Joined: Jun 2011
Reputation:
0
#3
10.12.2011, 22:16
Thanks Alot!
Find
Reply
[MG]Dimi
High-roller
Posts: 1,239
Threads: 16
Joined: Mar 2011
Reputation:
0
#4
10.12.2011, 22:18
No Problem. Just follow that Tutorial and you'll make it.
Find
Reply
telefatguy88
Little Clucker
Posts: 34
Threads: 7
Joined: Jun 2011
Reputation:
0
#5
10.12.2011, 22:23
also is it possible to make the npc attack??
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: 4 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help