pvp quit

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

Ter2FIc

Member
Dec 30, 2020
20
0
1
24
Code:
on damage:
    set {pvp::%victim%} to true

on quit:
    if {pvp::%player%} is true:
        execute console command "warn %player% don't quit on pvp"

if {pvp::%player%} is true:
    wait 20 seconds:
        if player took no damage:
            set {pvp::%player%} to false
Why doesn't this work?
can't understand this event: 'if {pvp::%player%} is true' (bpvp.sk, line 8: if {pvp::%player%} is true:')
 
Code:
on damage:
    set {pvp::%victim%} to true

on quit:
    if {pvp::%player%} is true:
        execute console command "warn %player% don't quit on pvp"

if {pvp::%player%} is true:
    wait 20 seconds:
        if player took no damage:
            set {pvp::%player%} to false
Why doesn't this work?
can't understand this event: 'if {pvp::%player%} is true' (bpvp.sk, line 8: if {pvp::%player%} is true:')
i for one recommend you use %player's uuid%, but your using if {pvp::%player%} is true: as an event, you need to have all code in triggers
 
Code:
on damage:
    set {pvp::%victim%} to true

on quit:
    if {pvp::%player%} is true:
        execute console command "warn %player% don't quit on pvp"

if {pvp::%player%} is true:
    wait 20 seconds:
        if player took no damage:
            set {pvp::%player%} to false
Why doesn't this work?
can't understand this event: 'if {pvp::%player%} is true' (bpvp.sk, line 8: if {pvp::%player%} is true:')
You put a {pvp::%player%} But the 2 :: = error, so the working one is {pvp.%player%}
 
i for one recommend you use %player's uuid%, but your using if {pvp::%player%} is true: as an event, you need to have all code in triggers
What do you mean I need to have all code in triggers?
Do you mean I need to put trigger:?
 
What do you mean I need to have all code in triggers?
Do you mean I need to put trigger:?
No. I mean you need to have it under an event. Such as
Code:
every second:
    if {pvp::%player's uuid%} is true:
        wait 20 seconds
        if player took no damage: #not sure if this is real but meh
            set {pvp::%player's uuid%} to false
I used player's uuid as you should probably migrate to using that but that makes more sense c:
 
Status
Not open for further replies.