devildead622 Posted February 17, 2013 Share Posted February 17, 2013 I wonder if there is any way/resource to the sniper can see other player further, beyond their normal range. Link to comment
Shazzimal Posted February 17, 2013 Share Posted February 17, 2013 I think this is impossible. Link to comment
devildead622 Posted February 17, 2013 Author Share Posted February 17, 2013 let's see if someone can give me sure of it is impossible Link to comment
Shazzimal Posted February 17, 2013 Share 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. Link to comment
50p Posted February 17, 2013 Share 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. Link to comment
Shazzimal Posted February 17, 2013 Share Posted February 17, 2013 That's accactly what i found yet, i can help you if you need. Link to comment
devildead622 Posted February 17, 2013 Author Share 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? Link to comment
Shazzimal Posted February 17, 2013 Share Posted February 17, 2013 you can't change the scope_range. You can only change the gun_range. Link to comment
devildead622 Posted February 17, 2013 Author Share Posted February 17, 2013 and this would cause could do with Sniper farther? Link to comment
Shazzimal Posted February 17, 2013 Share Posted February 17, 2013 Do you mean the distance a sniper could sight, or could shoot? Link to comment
devildead622 Posted February 17, 2013 Author Share Posted February 17, 2013 2, see especially Link to comment
Shazzimal Posted February 17, 2013 Share Posted February 17, 2013 So you want, that a sniper can shoot farther. Link to comment
Shazzimal Posted February 17, 2013 Share 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. Link to comment
Moderators IIYAMA Posted February 17, 2013 Moderators Share 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. 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