Solved autobc toggleping not working

  • 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.
Mar 18, 2021
16
0
1
25
i made a autobc skript and implemented and /toggleping but the toggleping command is not working if anyone knows a solution to this please tell me

skript addons:
Skellet, SkQuery, SkRayFall, Skript, skript-placeholders, TuSKe

Code:
command /toggleping:
    trigger:
        if {toggleping.%player%} is true:
            set {toggleping.%player%} to false
            send "&bBlumode >> &7ping has been turned off" to player
        else if {toggleping.%player%} is false:
            set {toggleping.%player%} to true
            send "&bBlumode >> &7ping has been turned on" to player


on join:
    set {toggleping.%player%} to true

on skript start:
    loop 10000000 times:
        wait 1 minutes
        broadcast "    &d&l ----✿Blumode✿------"
        broadcast "    &d&lEverything In Our Webstore"
        broadcast "    &d&lIs Currently &o&n&650%% Off!"
        broadcast "    &d&lTo Celebrate Our Launch"
        broadcast "   &d&l --------------------"
        loop all players:
            if {toggleping.%loop-player%} is true:
                play sound "entity_experience_orb_pickup" with volume 1 and pitch 1 to loop-player
            else if {toggleping.%loop-player%} is false:
                stop
        wait 1 minutes
        broadcast "    &b&l ----❃Blumode❃------"
        broadcast "    &b&l•Turn Off Time Changer"
        broadcast "    &b&l•Turn On Sound "
        broadcast "    &b&l --------------------"
        loop all players:
            if {toggleping.%loop-player%} is true:
                play sound "entity_experience_orb_pickup" with volume 1 and pitch 1 to loop-player
            else if {toggleping.%loop-player%} is false:
                stop
        wait 1 minutes
        broadcast "    &c&l ----:shamrock:Blumode:shamrock:------"
        broadcast "    &c&l• Always Keep The Chat Friendly"
        broadcast "    &c&l• Swearing Is Unacceptable"
        broadcast "    &c&l• Feedback & Suggestions Helps Us Improve"
        broadcast "    &c&l --------------------"
        loop all players:
            if {toggleping.%loop-player%} is true:
                play sound "entity_experience_orb_pickup" with volume 1 and pitch 1 to loop-player
            else if {toggleping.%loop-player%} is false:
                stop
        wait 1 minutes
        broadcast "    &2&l ----ꕤBlumodeꕤ------"
        broadcast "    &2&lStaff Is Always Needed!"
        broadcast "    &2&lDiscord Is Essential For Becomming A Staff Member"
        broadcast "    &2&lApply Under The Applications Tab In Our Discord"
        broadcast "    &2&l --------------------"
        loop all players:
            if {toggleping.%loop-player%} is true:
                play sound "entity_experience_orb_pickup" with volume 1 and pitch 1 to loop-player
            else if {toggleping.%loop-player%} is false:
                stop
 
Make a "status" command to know if it actually toggles between. If not try to change it to binary booleans (0-1)
 
ok ill try
[doublepost=1618102863,1618050544][/doublepost]i found a way to make it work just remove the
  1. else if {toggleping.%loop-player%} is false:
  2. stop
 
Status
Not open for further replies.