Ilidan Posted April 20, 2010 Share Posted April 20, 2010 Hi ta all so i need help,with scripts,i know that all of them i must make myself,but i am noob in it,becouse i was learning how to create them in mta wiki but no progress,i was trying to make simple scripts for two weeks day by day,i even didn't go to gym,an d i know that profesionals can do it in a minute,so maybe someone could just sent them to me,becouse in map editor i have much expierence and i created real cool map,there is some screens http://img220.imageshack.us/i/gtasa2010 ... 30395.png/ (u should see all things in game becouse it dificul to make good screens of my bases,some textures disapear fro far points when i make screens) so the server point is z-day and i need simple script that gives money for kiling zombies (or resource) i found same topic but as always i maded shity svript and i do not work,map is cool,a lot of baricades,bases all in gta world,but zombies do not give money so no point of kiling them,maybe someone can help,i would be very happy thanks Link to comment
dzek (varez) Posted April 20, 2010 Share Posted April 20, 2010 https://forum.multitheftauto.com/viewtop ... es#p305949 this will work for sure.. create new file, name it like: zombie_cash.lua put that code from above link into that file add it to meta xml at the end (just before : and restart zombie resource Link to comment
Ilidan Posted April 20, 2010 Author Share Posted April 20, 2010 i dont know what i maded wrong here is my script meta.xml and here is zombie_cash.lua 1. addEventHandler( "onZombieWasted", getRootElement(), 2. function( killer ) 3. givePlayerMoney( killer, 100 ); 4. end 5. ) what is wrong ? Link to comment
Ilidan Posted April 25, 2010 Author Share Posted April 25, 2010 i fixed it,i just writed in one place one line ,i even didnt needed whole new resource to get money for kills,... 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