Skocz do zawartości
  • 0

Citizens


Lotto

Pytanie

Witam, robie antycheata(tak w skrypcie xD) i chcialbym zamienic zombie w citizensy mam plugin citizens. Oto bledy:
 

13:55:22 INFO]: [Skript] Reloading anty-cheat.sk...


13:55:22 ERROR]: '"&4AntyCheat.%loop-player's name%" 2 meters above loop-playe
 is not an entity type (anty-cheat.sk, line 94: spawn citizen named "&4AntyChe
.%loop-player's name%" 2 meters above loop-player')
13:55:22 ERROR]: 'citizen' is not an entity type (anty-cheat.sk, line 95: set
alth of last spawned citizen to 1000')
13:55:22 ERROR]: 'citizen' is not an entity type (anty-cheat.sk, line 97: appl
fire resistance to last spawned citizen')
13:55:22 ERROR]: 'citizens' is not an entity type (anty-cheat.sk, line 99: loo
all citizens:')
13:55:22 ERROR]: '"&4AntyCheat.%loop-player's name%" 1 meters below loop-playe
 is not an entity type (anty-cheat.sk, line 103: spawn citizen named "&4AntyCh
t.%loop-player's name%" 1 meters below loop-player')
13:55:22 ERROR]: 'citizen' is not an entity type (anty-cheat.sk, line 104: set
ealth of last spawned citizen to 1000')
13:55:22 ERROR]: 'citizen' is not an entity type (anty-cheat.sk, line 106: app
 fire resistance to last spawned citizen')
13:55:22 ERROR]: 'citizens' is not an entity type (anty-cheat.sk, line 108: lo
 all citizens:')
13:55:22 ERROR]: '"&4AntyCheat.%loop-player's name%" behind loop-player' is no
an entity type (anty-cheat.sk, line 112: spawn citizen named "&4AntyCheat.%loo
player's name%" behind loop-player')
13:55:22 ERROR]: 'citizen' is not an entity type (anty-cheat.sk, line 113: set
ealth of last spawned citizen to 1000')
13:55:22 ERROR]: 'citizen' is not an entity type (anty-cheat.sk, line 115: app
 fire resistance to last spawned citizen')
13:55:22 ERROR]: 'citizens' is not an entity type (anty-cheat.sk, line 117: lo
 all citizens:')
13:55:22 ERROR]: undefined option {@bot} (anty-cheat.sk, line 127: if victim n
e is "%{@bot}%.%attacker's name%":')
13:55:22 ERROR]: 'victim name' is not an entity type (anty-cheat.sk, line 127:
f victim name is "%{@bot}%.%attacker's name%":')
13:55:22 INFO]: [Skript] Encountered 14 errors while reloading anty-cheat.sk!

Odnośnik do komentarza
https://skript.pl/temat/12937-citizens/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

@Derpy Hooves 

aliases:
    nonsolid = 1, 0, 10, 11

every 5 seconds:
    loop all players:
        spawn citizen named "&4AntyCheat.%loop-player's name%" 2 meters above loop-player
        set health of last spawned citizen to 1000
#       apply invisibility to last spawned citizen
        apply fire resistance to last spawned citizen
        wait 3 ticks
        loop all citizens:
            if name of loop-citizen contain "AntyCheat":
                delete loop-citizens
        wait 2 seconds
        spawn citizen named "&4AntyCheat.%loop-player's name%" 1 meters below loop-player
        set health of last spawned citizen to 1000
#       apply invisibility to last spawned citizen
        apply fire resistance to last spawned citizen
        wait 3 ticks
        loop all citizens:
            if name of loop-citizen contain "AntyCheat":
                delete loop-citizens
        wait 2 seconds
        spawn citizen named "&4AntyCheat.%loop-player's name%" behind loop-player
        set health of last spawned citizen to 1000
#       apply invisibility to last spawned citizen
        apply fire resistance to last spawned citizen
        wait 3 ticks
        loop all citizens:
            if name of loop-citizen contain "AntyCheat":
                delete loop-citizens


command /ca:
    trigger:
        set {fxaura.%player%} to 0

on damage:
    if victim name is "&4AntyCheat.%attacker%":
        cancel event
        add 1 to {fxaura.%attacker%}
        broadcast "&c&lANTY-CHEAT &8» &c%attacker% &8- &cKillAura &7&l(&6%{fxaura.%attacker%}%&8/&610&7&l) "
        if {fxaura.%attacker%} is 4:
            loop all players:
                if loop-player have permission "fxaura.admin":
                    send "&8» &7Sprawdzanie killaury gracza &4%attacker% &7(5)" to loop-player
        if {fxaura.%attacker%} is greater or equal to 10:
            clear {fxaura.%attacker%}
            set {fxaura.ban.%attacker%} to true
            broadcast "&8» &7Gracz &6%attacker% &7zostal permanentnie zbanowany przez &6ANTYCHEAT &7za: &6Cheaty (Killaura)"
            kick attacker due to "&8» &cZOSTALES ZBANOWANY &8«%nl%&8» &7Cheaty (Killaura)"


on join:
    set {fxaura.%player%} to 0[/sopiler]

Odnośnik do komentarza
https://skript.pl/temat/12937-citizens/#findComment-90400
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...