Dutchie

onPlayerWasted

Recommended Posts

I try to make onPlayerWasted that you lost the cash,

but i dont get it, :roll: 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!!?? :|

Share this post


Link to post

I got it :D

only put this line: setPlayerMoney( source, 0 ) into the onPlayerWasted handler.

:twisted: 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. :redhotevil:

.

Share this post


Link to post

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.

Share this post


Link to post
I got it :D

only put this line: setPlayerMoney( source, 0 ) into the onPlayerWasted handler.

:twisted: 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. :redhotevil:

.

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.

Share this post


Link to post

whatever :mrgreen: dont need any help,

even sorry for asking help, fu @ll. :P

happuh wel lekkah hiero.. :lol:

LB

Share this post


Link to post

/voteban Dutchie

srly.. we dont need guys like you here. :roll:

Share this post


Link to post
whatever :mrgreen: dont need any help,

even sorry for asking help, fu @ll. :P

happuh wel lekkah hiero.. :lol:

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! :twisted:

Share this post


Link to post

I feel offended as of everyone else in this forum probably does by his attitude. Can someone please do somthihng about this guy

p

Share this post


Link to post

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.

Share this post


Link to post

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.