Raised This Month: $12 Target: $400
 3% 

How To: Make a perfect NPC


Post New Thread Reply   
 
Thread Tools Display Modes
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-23-2006 , 21:41   Re: How To: Make a perfect NPC
Reply With Quote #71

Use DispatchSpawn(), also, those aren't the origin of the NPC, they're the size.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Kimler
Junior Member
Join Date: Nov 2006
Old 11-24-2006 , 04:53   Re: How To: Make a perfect NPC
Reply With Quote #72

Interesting... Thanks for that . So do I not need the origin of the NPC in this code?

And where would I place Use DispatchSpawn(), and is that all I need to do?

Thanks
Kimler is offline
Dimaspy
Member
Join Date: Aug 2004
Old 12-10-2006 , 18:51   Re: How To: Make a perfect NPC
Reply With Quote #73

This script works pretty well..
Could you add a script which spawns the NPC at a location, with a specified way to look, every time the server starts?
Then this script would be perfect.
Dimaspy is offline
mooncheese100
Junior Member
Join Date: Dec 2006
Old 12-21-2006 , 19:32   Re: How To: Make a perfect NPC
Reply With Quote #74

cant you just make this a plugin or something? i dont get it, where do you put all this code? i thought it would be a lot easier than this. all i want to do is put an npc in the pd, and i already got the mysql table done, and the xyz coordinates and stuff, i just want him to stand there and sell things. do i really have to go thru all that?
mooncheese100 is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 12-29-2006 , 12:51   Re: How To: Make a perfect NPC
Reply With Quote #75

Dimaspy, thats something you could add yourself very easily. Use the search to find any plugins/tutorials on what you need.

@mooncheese: you put this code into a text editor, save it as a .sma file; then compile it used the amxmodx compiler. Theres a web compiler if you need it.
http://www.amxmodx.org/webcompiler.cgi
It is really easy once you know how to do it.
Yes; you have to go through all that.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
weebl
New Member
Join Date: Dec 2006
Old 12-30-2006 , 20:43   Re: How To: Make a perfect NPC
Reply With Quote #76

Is there a way to making this NPC spawn every time the server starts on one fixed location?
weebl is offline
weebl
New Member
Join Date: Dec 2006
Old 12-30-2006 , 21:07   Re: How To: Make a perfect NPC
Reply With Quote #77

OK, now I figured out I have to use DispatchSpawn( entity ) but how do I define the location of the NPC?
weebl is offline
exelz
Member
Join Date: Oct 2006
Old 02-20-2007 , 05:01   Re: How To: Make a perfect NPC
Reply With Quote #78

Can some one post the code when round starts NPC will spawn in map?
And a code that one NPC in T spawn and one in Ct Spawn and you can buy items from NPC. And hou can i make like this that you can buy cs weaposn and other weaposn taht adds extra dmg and armors that adds extra armor

PLZ HELP!!!
__________________
exelz is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 02-20-2007 , 10:30   Re: How To: Make a perfect NPC
Reply With Quote #79

this should be posted in scripting help or suggestion/requests not here
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-20-2007 , 21:47   Re: How To: Make a perfect NPC
Reply With Quote #80

Einstein apparently couldn't spell or something.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode