Jump to content

value name


botshara

Recommended Posts

in first give - name == pack of cigaretes (get from id) but how to in second give - set name == cigarete ?

        elseif id == 18 then  
            if ( value > 0) then                 
                    take(source, slot) 
                    give(source, id, value - 1, name) -- name == pack of cigaretes 
                    give(source, 19, 1, name == cigarete)  -- name == cigarete , how ?? 
                    exports.chat:me(source, "look inside in pack of cigaretes, and get one out") 
            else 
                exports.chat:me(source, "look inside in pack of cigaretes. It's empty.") 
            end 

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.

×
×
  • Create New...