Timoow13 Posted April 4, 2012 Posted April 4, 2012 Hello, How do i put zombies in 1 area, and not everywhere? I only want zombies in that little spooky village in LV desert, but i don't know how to do that. Can someone give me a script for that? (if it's possible ) And is there also a script to get $100 for each zombie you kill? Join now!
Castillo Posted April 4, 2012 Posted April 4, 2012 This script will give $100 each time you kill a zombie. addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( killer ) if ( killer and getElementType ( killer ) == "player" ) then givePlayerMoney ( killer, 100 ) end end ) About the zombies just in one zone, you could set the spawn method to spawnpoints and then create them where you want. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted April 5, 2012 Posted April 5, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Timoow13 Posted April 6, 2012 Author Posted April 6, 2012 (edited) Hmm.. it doesn't work... where do I have to put it? Edited April 6, 2012 by Guest Join now!
X-SHADOW Posted April 6, 2012 Posted April 6, 2012 posX="" posY="" posZ="" these are the spawn points you can make it like this posX="Here Your Pos X" posY="Here Your Pos Y" posZ="Here Your Pos Z" and you can get them form admin Panel My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Timoow13 Posted April 6, 2012 Author Posted April 6, 2012 posX="" posY="" posZ="" these are the spawn points you can make it like this posX="Here Your Pos X" posY="Here Your Pos Y" posZ="Here Your Pos Z" and you can get them form admin Panel I already did that, i was a bit late with editing my comment But thanks for responding! But that money-thing doesn't work, where do i have to put it? Join now!
X-SHADOW Posted April 6, 2012 Posted April 6, 2012 server.lua addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",getRootElement(), function (killer) givePlayerMoney(killer,math.random(100,200)) end) meta.xml <meta> <info author="mtafourm" version="1.0" type="script" name="MoneyReward" /> <script src="server.lua" type="server"/> </meta> My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now