Castillo Posted September 23, 2012 Posted September 23, 2012 Use the event: onPlayerWasted combined with: takePlayerMoney. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
slotman Posted September 23, 2012 Author Posted September 23, 2012 Use the event: onPlayerWasted combined with: takePlayerMoney. How to takePlayerMoney ??
Castillo Posted September 23, 2012 Posted September 23, 2012 Click on both links and read about them. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
slotman Posted September 23, 2012 Author Posted September 23, 2012 addEventHandler( "onPlayerWasted", getRootElement( ), function() takePlayerMoney(theplayer, 5000(amount)) setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end ) ??
Castillo Posted September 23, 2012 Posted September 23, 2012 No, that doesn't make much sense. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted September 23, 2012 Posted September 23, 2012 takePlayerMoney(theplayer, 5000(amount)) What is (amount) doing there? Where is 'theplayer' defined? it should be 'source'. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alan.Alexander Posted September 23, 2012 Posted September 23, 2012 Slotman, maybe it might help if you actually learn how to script first... Or even take more English lessons BEFORE asking?
Booo Posted September 24, 2012 Posted September 24, 2012 amount = 5000 addEventHandler( "onPlayerWasted", getRootElement( ), function() takePlayerMoney(source, amount) end ) تذكر عند تصفحك للأنترنت قوله تعالى: (( وهو معكم أين ما كنتم والله بما تعملون بصير )) ا
xTeacherx Posted September 24, 2012 Posted September 24, 2012 function setMoneyOnWasted ( ) givePlayerMoney ( source, -50 ) outputChatBox("You Lost [ 50 ]", source, 255,255,0, true) end addEventHandler ( "onPlayerWasted", getRootElement(), setMoneyOnWasted )
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