SuleymanM Posted January 26, 2013 Share Posted January 26, 2013 Hi all, Please help me ... Exists or how create a resource "Money when reach Hunter? " Thanks Link to comment
Castillo Posted January 26, 2013 Share Posted January 26, 2013 Is a really simple script, so I'll give it to you: -- script.lua: local reward = 2000 addEventHandler ( "onPlayerPickUpRacePickup", root, function ( pickupID, pickupType, vehicleModel ) if ( pickupType == "vehiclechange" ) and ( vehicleModel == 425 ) then givePlayerMoney ( source, reward ) outputChatBox ( getPlayerName ( source ) .." has got the hunter and obtained $".. tostring ( reward ), root, 0, 255, 0 ) end end ) -- meta.xml: "Castillo" version="1.0" name="Hunter Reward" type="script" /> Link to comment
SuleymanM Posted January 27, 2013 Author Share Posted January 27, 2013 can u create please for me ? Link to comment
Castillo Posted January 27, 2013 Share Posted January 27, 2013 I already did, create a new folder and then create two files with the names I said above, then copy each content to each file. Link to comment
SuleymanM Posted January 28, 2013 Author Share Posted January 28, 2013 i make .... not function ... Link to comment
Castillo Posted January 28, 2013 Share Posted January 28, 2013 You obviously did it wrong, because I just tested it and works. Here you can download the resource, since it seems that you can't even follow some simple steps: http://www.mediafire.com/?mv3ghpu1u7mjtdg Link to comment
Anderl Posted January 28, 2013 Share Posted January 28, 2013 Is a really simple script, so I'll give it to you:-- script.lua: local reward = 2000 addEventHandler ( "onPlayerPickUpRacePickup", root, function ( pickupID, pickupType, vehicleModel ) if ( pickupType == "vehiclechange" ) and ( vehicleModel == 425 ) then givePlayerMoney ( source, reward ) outputChatBox ( getPlayerName ( source ) .." has got the hunter and obtained $".. tostring ( reward ), root, 0, 255, 0 ) end end ) -- meta.xml: "Castillo" version="1.0" name="Hunter Reward" type="script" /> I'm pretty sure tostring isn't needed in outputChatBox, is it? Link to comment
Castillo Posted January 28, 2013 Share Posted January 28, 2013 It isn't, must be put it from habit. Link to comment
McDejan24 Posted January 29, 2013 Share Posted January 29, 2013 Solidsnake14 can you create plss when you finish race to get money plss no when you rich Hunter in DM in [Race] [Trials] [Run] plss it is so simple but i am no scripter i dont know how to create this plss help me and thank you for this simple script work perfect Link to comment
SuleymanM Posted January 29, 2013 Author Share Posted January 29, 2013 Now , server no recognize script... Link to comment
iPrestege Posted January 29, 2013 Share Posted January 29, 2013 You Are Just A thief Man! Castillo Script This For You And You Don,t Give Him credit : https://community.multitheftauto.com/ind ... ls&id=6388 local reward = 5000 addEventHandler ( "onPlayerPickUpRacePickup", root, function ( pickupID, pickupType, vehicleModel ) if ( pickupType == "vehiclechange" ) and ( vehicleModel == 425 ) then givePlayerMoney ( source, reward ) outputChatBox ( getPlayerName ( source ) .." has got the hunter and obtained $".. tostring ( reward ), root, 0, 255, 0 ) end end ) "Suleyman" version="1.0" name="HunterReward" type="script" /> http://store2.up-00.com/Nov12/Rbi73863.png Damn it! 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