Jump to content

SNIPER BUG


Chupy

Recommended Posts

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
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 by Ayush Rathore
Link to comment
  • Moderators

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
  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...