Solved Noob protection help

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

Kuzifes

Member
Apr 25, 2017
16
0
0
27
Skript Version:26
Skript Author:Bensku
Minecraft Version:

---
code_language.skript:
on damage of a player:
   if attacker is a player:
       {playtime.hour.%victim%} is lesser than 6
       cancel event

I'm trying to make a pvp protection for players that have lesser than 6 hours playtime, the playtime is in a variable made by another script.
 
Skript Version:26
Skript Author:Bensku
Minecraft Version:

---
code_language.skript:
on damage of a player:
   if attacker is a player:
       {playtime.hour.%victim%} is lesser than 6
       cancel event

I'm trying to make a pvp protection for players that have lesser than 6 hours playtime, the playtime is in a variable made by another script.
The what's the problem? Do you need the playtime skript or anything else?
If the code is not working try this one:
code_language.skript:
on damage:
    attacker is a player
    Victim is a player
    {playtime.hour.%victim%} is smaller than 6
    cancel event
 
The what's the problem? Do you need the playtime skript or anything else?
If the code is not working try this one:
code_language.skript:
on damage:
    attacker is a player
    Victim is a player
    {playtime.hour.%victim%} is smaller than 6
    cancel event
Your code is working, thanks ^^
 
Status
Not open for further replies.