Jump to content

[Help] GiveCash


matttu

Recommended Posts

Hey!

My problem is, how to i put that VIP-s will get 10 money, I want that people in VIP acl group get 10 instead of 5, please give me some directions or some kind of help! =)

Thanks! =)

addEventHandler( "onZombieGetsKilled", getRootElement(), 
    function( killer ) 
        givePlayerMoney( killer, 5 ); 
    end 
) 

Link to comment

Try this one if you don't understand ( not tested ).

addEventHandler( "onZombieGetsKilled", getRootElement(), 
    function( killer ) 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(killer)),aclGet("Vip")) then 
        givePlayerMoney( killer, 10 ) 
    else 
        givePlayerMoney( killer, 5 ) 
end 
end 
) 

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