Jump to content

Some Small Help over Here :D


^Dev-PoinT^

Recommended Posts

Posted

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:

Posted (edited)
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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

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

Paid developer. Twitter: @willia_am -

http://www.williamdasilva.fr

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