Dutchie Posted May 18, 2009 Share Posted May 18, 2009 I try to make onPlayerWasted that you lost the cash, but i dont get it, any can help me? theRoot = getRootElement () theResRoot = getResourceRootElement ( getThisResource () ) addEventHandler("onPlayerWasted", theRoot, function ( attacker, player ) local money = getPlayerMoney(player) if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then takePlayerMoney ( player, money ) setPlayerMoney( attacker, money ) end end end ) what i do wrong!!?? Link to comment
Lordy Posted May 18, 2009 Share Posted May 18, 2009 http://development.mtasa.com/index.php? ... ayerWasted onPlayerWasted gives parametes int totalAmmo, element killer, int killerWeapon, int bodypart [, bool stealth ] The player who died is the source.. And killer is the second argument in function(). Link to comment
Dutchie Posted May 18, 2009 Author Share Posted May 18, 2009 http://development.mtasa.com/index.php?title=OnPlayerWastedonPlayerWasted gives parametes int totalAmmo, element killer, int killerWeapon, int bodypart [, bool stealth ] The player who died is the source.. And killer is the second argument in function(). nvm i dont get it anyway... i must first read http://development.mtasa.com much more. thx anyway. Link to comment
Dutchie Posted May 23, 2009 Author Share Posted May 23, 2009 I got it only put this line: setPlayerMoney( source, 0 ) into the onPlayerWasted handler. lordy? give me next time beter help or say nothing if you not sure much beter if you not give peeps help becouse your answer sux. i think that mr lordy not realy want give people help, but only gives stupid answer to get more post. . Link to comment
Willy Posted May 23, 2009 Share Posted May 23, 2009 Dutchie, if you start posting like that then no-one will want to help you at all. Lordy told you all you needed to know, if you knew about scripting. The idea of help like that isn't to just give you the answer but to try and help you to learn, so that next time you can fix the problem yourself. Be a bit less ungrateful in future or you won't get any help from anyone. Link to comment
robhol Posted May 23, 2009 Share Posted May 23, 2009 I got it only put this line: setPlayerMoney( source, 0 ) into the onPlayerWasted handler. lordy? give me next time beter help or say nothing if you not sure much beter if you not give peeps help becouse your answer sux. i think that mr lordy not realy want give people help, but only gives stupid answer to get more post. . That is the dumbest thing I've seen so far today. (Admittedly, I've only been up for about half an hour, but still.) We're not here to serve you finished scripts on a silver platter for free. If you're here, you better damn try to learn for yourself. (Give us some information to work with and we're usually happy to help with minor problems.) Also, there isn't a huge lot of people who can actually be bothered answering topics all the time, (and who actually know enough to be helpful at all, I might add,) so if you get an answer, the last thing you wanna do is offend the poster so he never wants to help you again. Personally, I feel inclined towards never helping you, just from seeing this single post. Bottom line: you're not in a position to bitch at people who're trying of their own free will to help you. Link to comment
Dutchie Posted May 25, 2009 Author Share Posted May 25, 2009 whatever dont need any help, even sorry for asking help, fu @ll. happuh wel lekkah hiero.. LB Link to comment
SATAN Posted May 25, 2009 Share Posted May 25, 2009 /voteban Dutchie srly.. we dont need guys like you here. Link to comment
robhol Posted May 25, 2009 Share Posted May 25, 2009 whatever dont need any help,even sorry for asking help, fu @ll. happuh wel lekkah hiero.. LB .. he said maturely. If you would actually behave, you wouldn't get an answer like that. (Mine, that is. Lordy did tell you all you needed to know if you had half a brain.) Edit: post 666! Link to comment
jkub Posted May 26, 2009 Share Posted May 26, 2009 I feel offended as of everyone else in this forum probably does by his attitude. Can someone please do somthihng about this guy p Link to comment
50p Posted May 26, 2009 Share Posted May 26, 2009 As you all probably know, ... dont need any help,even sorry for asking help, fu @ll. He doesn't need help and will not post on this forum because he's good enough and doesn't need to ask for help but if he will ask, than quote him and maybe he'll understand that he's ignorant. Be good to me and I'll be good to you, if you aren't good to me than I ain't good to you. Simple as that. So from now on, just ignore his posts. Link to comment
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