xXGhostXx Posted October 1, 2018 Share Posted October 1, 2018 Hi guys ! How to make script for when the players kill each other, they can give the person who killed them a wanted ! Link to comment
KillerX Posted October 1, 2018 Share Posted October 1, 2018 'onPlayerWasted' -- Event setPlayerWantedLevel -- Server Function addEventHandler( 'onPlayerWasted' , root , function( Ammo , Killer , weapon , part , bool ) if ( isElement( Killer ) and getElementType( Killer ) == 'player' ) then setPlayerWantedLevel( Killer , 5 ) end end ) Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 01/10/2018 at 19:15, KillerX said: 'onPlayerWasted' -- Event setPlayerWantedLevel -- Server Function addEventHandler( 'onPlayerWasted' , root , function( Ammo , Killer , weapon , part , bool ) if ( isElement( Killer ) and getElementType( Killer ) == 'player' ) then setPlayerWantedLevel( Killer , 5 ) end end ) Not work ! like: /call110 Player killed by player can give wanted level 1 for 1 minute ! Link to comment
KillerX Posted October 4, 2018 Share Posted October 4, 2018 1 hour ago, xXGhostXx said: Not work ! like: /call110 Player killed by player can give wanted level 1 for 1 minute ! okay use setTimer -- Function setPlayerWantedLevel -- Function 'onPlayerWasted' -- Event 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