Jump to content

Wanted Level


Recommended Posts

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

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

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...