Solved CPS command

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ShadowLifeMC

New Member
Jul 20, 2020
5
0
1
Hello!
I urgently need a command skript for a pvp server.
The command should be /cps <player> and it should tell me the clicks per second of the player listed.
Thanks!
 
Hello!
I urgently need a command skript for a pvp server.
The command should be /cps <player> and it should tell me the clicks per second of the player listed.
Thanks!
Skript is not good at this kind of thing. But well, try something like this:
code_language.skript:
on join:
    delete {counter.%player%}
on left click:
    add 1 to {counter.%player%}
    if {counter.%player%} >= 10:
        kick player due to "Reason to kick"
    wait 1 seconds
    subtract 1 from {counter.%player%}
on quit:
    delete {counter.%player%}
 
Last edited:
Code:
on join:
    delete {cpscounter.%player%}
on left click:
    add 1 to {cpscounter.%player%}
    if {cpscounter.%player%} >= 15:
        kick player due to "High CPS"
    wait 1 seconds
    subtract 1 from {cpscounter.%player%}
on quit:
    delete {cpscounter.%player%}

This is like the same, but I changed how @couger44 made the cps a low ammount. and made the variable cpscounter.%player% because you could be using counter.%player% already.
 
Status
Not open for further replies.