Chupy Posted June 24, 2017 Share Posted June 24, 2017 Hello, i 'm new here, so I've a problem with my sniper ( mta dayz , and play too ) I set a big damage for my sniper, but have more times , sniper don't kill the play have times that i have to give 4, 5 hits for the player die Anyone can help me ? Any script that sniper kill with 1 shot ,( in all parts, kill player with lag ) I see many servers with sniper fix , plls <3 ( Sorry for my english ) Thanks. Link to comment
Ayush Rathore Posted June 25, 2017 Share Posted June 25, 2017 (edited) 7 hours ago, Chupy said: Hello, i 'm new here, so I've a problem with my sniper ( mta dayz , and play too ) I set a big damage for my sniper, but have more times , sniper don't kill the play have times that i have to give 4, 5 hits for the player die Anyone can help me ? Any script that sniper kill with 1 shot ,( in all parts, kill player with lag ) I see many servers with sniper fix , plls <3 ( Sorry for my english ) Thanks. BTW you should first read mta wiki if u are a scripter Server Side : function playerDamageCheckForSniper ( attacker, weapon, bodypart, loss ) if ( weapon == 34 ) then killPed ( source, attacker, weapon, bodypart ) end end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamageCheckForSniper ) this would do the trick Edited June 25, 2017 by Ayush Rathore Link to comment
Moderators IIYAMA Posted June 25, 2017 Moderators Share Posted June 25, 2017 Setting the sniper at 100 damage will not do 100 damage. There is a multiplier that will give different damage results to players/peds, objects and vehicles. For example ~130 will do 50 damage to a player. (can't remember the exact values) So set the damage at 1000 or even 10000. I assume you use: setWeaponProperty Link to comment
Evan Posted September 5, 2017 Share Posted September 5, 2017 i have the same problem too 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