Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssPed Creation example (peds)

Category:script
Author(s):50p
Downloads:8698
Rate:You need to be logged in to vote
Rating:3.8 (58 Votes)
Description:
This is an example of how to create pedestrians and how to make them walk/follow you. I made a video of how it works: http://www.youtube.com/watch?v=mSI4sgihFwU

Feel free to modify, copy, do whatever you want with the code but mention me in credits.

Available commands:
/ped <id>
- creates a ped with specific ID that will follow you (if you have ped(s) already it will add it to the group)

/peds <amount>
- creates <amount> of players that will follow you (if you have ped(s) already these will be added to the group)

/giveweapon <weaponid>
- gives weapon to all peds that belong to you (they can not shoot yet)

/headless [headstate]
- sets their heads state, when you type "/headless" they will lose their heads, when you type "/headless false" they will have their heads back

/healthbars
- shows or hides peds' healthbar

/destroymypeds
- destroys all your peds in case if you have made too many of them


NOTE: These pedestrians do NOT walk on sidewalks and drive vehicles they just go after you! That's because it's an example of how it works.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.2.0 2009-01-11 00:39:07 Fixed bugs posted in comments. Thanks for reports! Download
1.1.0 2009-01-04 00:09:29 Download
1.0.0 2009-01-03 23:51:26 First public release Download