Jump to content

Dupe count


Weeeoooooo

Recommended Posts

so i made a dupe server but you can only do 50 dupes 
 

command dupe:
    trigger:
        if {dupecount::%player%} >= 50:
            send "&cYou cant dupe anymore use /limitdupe!"
            console command "pex user %player% add limit.dupe" #This is just another dupe if you want it say
        else if {dupecount::%player%} < 50:
            if player is holding barrier:
                send "You cant dupe a barrier lol" to player
            else if player is not holding barrier:
                give player player's tool
                add 1 to {dupecount::%player%}
on join:
    if {dupecount::%player%} is not set:
        set {dupecount::%player%} to 0 #this has to be in to check if the dupe count is not set and it will set it to 0 if u dont put it, it wont work!

 

Edited by Weeeoooooo
uh i did it wrong
  • Like 1
Link to comment
Share on other sites

You now you don't need to set the variable to 0 on join for it to work. If you add 1 to a variable that is not set, it automatically gets set to 1. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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
×
×
  • Create New...