AMARANT Posted May 1, 2011 Share Posted May 1, 2011 Such a simple script which gives wanted level to a player who kills another player: function wanted( ammo, attacker, weapon, bodypart ) setPlayerWantedLevel ( attacker, getPlayerWantedLevel( attacker )+1 ) end addEventHandler ( "onPlayerWasted", getRootElement(), wanted ) But I'm totally confusing. This script works to me and doesn't work to others players which join my server. Please help me to solve this problem. Link to comment
Arran Posted May 2, 2011 Share Posted May 2, 2011 There is no reason why it would work for you and not others. Also you want an "if (source == attacker) then return end" so you don't get wanted for killing yourself. You can check if it works for others by asking them to grenade themselves. 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