kevin11 Posted April 30, 2010 Share Posted April 30, 2010 (edited) hey i found this script here in forums few days ago and that topic was locked so i was wondering why it didnt work also i wanna know what line i need to add so DD/DM last alive will be awarded too Edited May 1, 2010 by Guest Link to comment
dzek (varez) Posted April 30, 2010 Share Posted April 30, 2010 i wanna know what line i need to add so all youre wins will be saved (maybe cash too) well, this on not LINE.. not one.. you wanna learn scripting or do us the job for you (i think if you choose 2nd answer noone will do it)? Link to comment
kevin11 Posted April 30, 2010 Author Share Posted April 30, 2010 ok but how about the racewin ?? what is wrong with it Link to comment
dzek (varez) Posted April 30, 2010 Share Posted April 30, 2010 ok but how about the racewin ?? what is wrong with it this should work, are you sure you added it correctly,on the server side? Link to comment
kevin11 Posted April 30, 2010 Author Share Posted April 30, 2010 yup i save as .lua and use this meta " type="server" /> Link to comment
dzek (varez) Posted April 30, 2010 Share Posted April 30, 2010 " type="server" /> this is wrong.. you closed the replace that line with <script src="racewin.lua" type="server" /> Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 ty dark it works but it doesnt work at dm/dd Link to comment
raulrobi Posted May 1, 2010 Share Posted May 1, 2010 A script that wins on DD /DM anybody pls Please! Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 (edited) yes raulrobi gets me edit well that we need dm/dd wins too Edited May 1, 2010 by Guest Link to comment
raulrobi Posted May 1, 2010 Share Posted May 1, 2010 ahhh so u know how to make a dd/dm script ? Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 im working on it (if it works i might post it here) Link to comment
raulrobi Posted May 1, 2010 Share Posted May 1, 2010 ok,thank you :thankyou: *thankyou* Link to comment
dzek (varez) Posted May 1, 2010 Share Posted May 1, 2010 (edited) you have to modify "race" resource destructionderby.lua file: --add this at the beggining of file: addEvent("onPlayerDestructionDerbyWin") --and somewhere near line 87 (im not sure this) -- just after: -- showMessage(getPlayerName(activePlayers([1])) .. ' is the final survivor!', 0, 255, 0) -- add: triggerEvent("onPlayerDestructionDerbyWin", getRootElement(), activePlayers[1]) then your script should look like: addEvent("onPlayerDestructionDerbyWin",true) addEventHandler("onPlayerDestructionDerbyWin",getRootElement(), function (winner) givePlayerMoney(winner, 350) -- there was a "bug" (used "winer" instead of "winner") end ) ps. i didnt test it Edited May 2, 2010 by Guest Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 no need to test it IT WORKS PERFECT ty Link to comment
dzek (varez) Posted May 2, 2010 Share Posted May 2, 2010 works? well, there was a bug in line 4 look at my post above Link to comment
kevin11 Posted May 2, 2010 Author Share Posted May 2, 2010 my friend said it works.... Link to comment
dzek (varez) Posted May 2, 2010 Share Posted May 2, 2010 i think he fixed my little typo Link to comment
Castillo Posted June 7, 2010 Share Posted June 7, 2010 must I add code in acl ? hahaahah wtf? no, u have to make a folder and make a lua file and a meta.xml and is done Link to comment
Boris. Posted July 8, 2018 Share Posted July 8, 2018 Okay, really old theme but I have problems now with that. And I dont have destructionderby.lua 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