BLACKHACK Posted July 6, 2012 Posted July 6, 2012 Welcome, I need a code or something or Examble to get money when kill a zombie
TAPL Posted July 6, 2012 Posted July 6, 2012 Search in community before open topic https://community.multitheftauto.com/ind ... ils&id=791 1
BLACKHACK Posted July 15, 2012 Author Posted July 15, 2012 Thanx thats helpfully , but in the community i cant view all resurces i have to search bad thing
Jaysds1 Posted July 15, 2012 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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted July 15, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BLACKHACK Posted July 22, 2012 Author 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
robhol Posted July 22, 2012 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. Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
MTA Team qaisjp Posted July 22, 2012 MTA Team 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
Castillo Posted July 23, 2012 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
TAPL Posted July 23, 2012 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
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