^Dev-PoinT^ Posted November 2, 2011 Posted November 2, 2011 i have error in This iam stuck on it 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)
Castillo Posted November 2, 2011 Posted November 2, 2011 (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 November 2, 2011 by Guest San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
FatalTerror Posted November 2, 2011 Posted November 2, 2011 (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 November 2, 2011 by Guest Paid developer. Twitter: @willia_am - http://www.williamdasilva.fr
^Dev-PoinT^ Posted November 2, 2011 Author Posted November 2, 2011 Thx All i Fix it thx For Help by the way
FatalTerror Posted November 2, 2011 Posted November 2, 2011 LoL i've find XSS error in this forum Paid developer. Twitter: @willia_am - http://www.williamdasilva.fr
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