LucasBaker Posted May 6, 2013 Posted May 6, 2013 Well, I'm trying to create a script eg / hitman $ name value, and kill that player earns a certain amount of money, but I am not able to finish it someone could help me, what functions I use for such a script, the script I have done below hitherto and still not working must have done something wrong function assassino (thePlayer) local money = getPlayerMoney(thePlayer) if (money > 1000) then takePlayerMoney ( thePlayer, tonumber(1000) ) outputChatBox ('[CONTRATOS] O Player ' ..getPlayerName(thePlayer) .. ' botou um contrato no Player', root, 221, 160, 221, true) end addCommandHandler ( "hitman", assassino )
Castillo Posted May 6, 2013 Posted May 6, 2013 To do this, you'll have to store the data somewhere, I would say tables, then when he dies, get the reward amount from that table and give it to the killer. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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