BLACKHACK Posted July 6, 2012 Share Posted July 6, 2012 Welcome, I need a code or something or Examble to get money when kill a zombie Link to comment
TAPL Posted July 6, 2012 Share Posted July 6, 2012 Search in community before open topic https://community.multitheftauto.com/ind ... ils&id=791 1 Link to comment
BLACKHACK Posted July 15, 2012 Author Share Posted July 15, 2012 Thanx thats helpfully , but in the community i cant view all resurces i have to search bad thing Link to comment
Jaysds1 Posted July 15, 2012 Share Posted July 15, 2012 , Calm down, in the next Community Site, you should be able to view all the resources and/or search with suggested tags. Link to comment
Castillo Posted July 15, 2012 Share Posted July 15, 2012 I don't see why you should search for such a easy script, you only need to have basic knowledge of scripting. You would need to combine the event: "onZombieWasted" with givePlayerMoney. Link to comment
BLACKHACK Posted July 22, 2012 Author Share Posted July 22, 2012 I don't see why you should search for such a easy script, you only need to have basic knowledge of scripting.You would need to combine the event: "onZombieWasted" with givePlayerMoney. Im still bigner for scripting i can do simple things like "onPlayerSpawn giveWeapon" and somethings easy But im very good mapper Link to comment
robhol Posted July 22, 2012 Share Posted July 22, 2012 It's the exact same thing - listen for the event, act on it. Also, this is a scripting issue, so I'm moving it. Link to comment
qaisjp Posted July 22, 2012 Share Posted July 22, 2012 (edited) This may work: local ZOMBIE_REWARD = 50 -- The amount of money rewarded to a player once killed addEventHandler('onZombieWasted', root, function(player) givePlayerMoney(player, ZOMBIE_REWARD) end ) Update the first line. I have guessed the syntax of the event. Edited July 23, 2012 by Guest Link to comment
Castillo Posted July 23, 2012 Share Posted July 23, 2012 That won't work, you forgot about: addEvent and "root" at second argument of addEventHandler. local ZOMBIE_REWARD = 50 -- The amount of money rewarded to a player once killed addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( player ) givePlayerMoney ( player, ZOMBIE_REWARD ) end ) Link to comment
TAPL Posted July 23, 2012 Share Posted July 23, 2012 He already got what he was looking for, i don't know why you still posting and try to help him lol Link to comment
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