devildead622 Posted February 17, 2013 Posted February 17, 2013 I wonder if there is any way/resource to the sniper can see other player further, beyond their normal range.
devildead622 Posted February 17, 2013 Author Posted February 17, 2013 let's see if someone can give me sure of it is impossible
Shazzimal Posted February 17, 2013 Posted February 17, 2013 Ok, i am not advanced with scriptin, i started learning around 3-4 days ago. I am going to search on the wiki, to your problem.
50p Posted February 17, 2013 Posted February 17, 2013 You can try this: https://wiki.multitheftauto.com/wiki/SetWeaponProperty but if that's not what you're looking for then I'm sure it's not possible.
Shazzimal Posted February 17, 2013 Posted February 17, 2013 That's accactly what i found yet, i can help you if you need.
devildead622 Posted February 17, 2013 Author Posted February 17, 2013 I am Brazilian, it is difficult to understand the wiki after translating. You can Diser if any of these functions alters the scope of the gun?
Shazzimal Posted February 17, 2013 Posted February 17, 2013 you can't change the scope_range. You can only change the gun_range.
devildead622 Posted February 17, 2013 Author Posted February 17, 2013 and this would cause could do with Sniper farther?
Shazzimal Posted February 17, 2013 Posted February 17, 2013 Do you mean the distance a sniper could sight, or could shoot?
Shazzimal Posted February 17, 2013 Posted February 17, 2013 So you want, that a sniper can shoot farther.
Shazzimal Posted February 17, 2013 Posted February 17, 2013 You must yous this then: step 1: server-side addCommandHandler("getSniper", function() local range = getWeaponProperty(34,"poor","weapon_range") outputChatBox("Range from Sniper is:"..tostring(range)) end) meta.xml <meta> <script src="server.lua" type="server"/> </meta> Just add this resource to the server, type /getSniper on chatbox and send the result to me.
Moderators IIYAMA Posted February 17, 2013 Moderators Posted February 17, 2013 addEventHandler( "onResourceStart", resourceRoot, function ( ) setWeaponProperty(34, "pro", "weapon_range", 300) setWeaponProperty(34, "pro", "target_range", 300) setWeaponProperty(34, "poor", "weapon_range", 300) setWeaponProperty(34, "poor", "target_range", 300) setWeaponProperty(34, "std", "weapon_range", 300) setWeaponProperty(34, "std", "target_range", 300) end) .....................................................................................................................................................................................................................................................................................................................................................................,,,,, Note: sniper is already "300" max.
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