Jump to content

Some Small Help over Here :D


^Dev-PoinT^

Recommended Posts

i have error in This iam stuck on it :x

function onKill(ammo, killer, weapon, bodypart) 
    if (killer and killer ~= source) then 
    setPlayerWantedLevel ( thePlayer, 3 ) 
    outputChatBox ( getPlayerName ( killer ) .. "#FFFF00Has Kill a Player and Have 3 Stars!!" ) 
addEventHandler("onPlayerWasted", getRootElement(), onKill) 

:oops:

Link to comment
function onKill(ammo, killer, weapon, bodypart) 
     if (killer and killer ~= source) then 
          setPlayerWantedLevel ( killer, 3 ) 
          outputChatBox ( getPlayerName ( killer ) .. "#FFFF00Has Kill a Player and Have 3 Stars!!", getRootElement(), 255, 255, 255, true ) 
     end 
end 
addEventHandler("onPlayerWasted", getRootElement(), onKill) 

Edited by Guest
Link to comment

Hi,

In the setPlayerWantedLevel() the element "thePlayer" don't exist.

Try to change it to:

  
setPlayerWantedLevel(killer, 3) 
  

Edit: For the outputChatBox(), you use

  
outputChatBox("TEXT", getRootElement(), 255, 255, 255, true) 
-- To show colors  
  

Edited by Guest
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...