Jump to content

Exp Zumbie


Try

Recommended Posts

Hello Forum!

Im making a Zombie server i found one exp by castillo but i tryied to use but dont go can someone explain me or give me one script for when u kill zombies u get exp and money? like one Level Script

Thanks For The Help,

Maria.

Link to comment

Hmmm, try this code using the exp_system resource:

function rewardOnWasted ( killer ) 
local exp = getElementData(killer,"exp") 
if exp then 
setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) 
outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0) 
else 
setElementData(killer,"exp",5) 
   end 
end 
addEvent("onZombieWasted",true) 
addEventHandler ( "onZombieWasted", getRootElement(), rewardOnWasted ) 

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