Skocz do zawartości
  • 0

Wyłączanie pvp pomiędzy grupami


TheDarkRider
 Udostępnij

Pytanie

Witam czy mógł by mi ktoś napisać Skript Na temat:

Jeżeli gracz jest w grupie (permissionsex) Policja

To może bić tych z grupy gangster ale nie tych z policja

Tak samo jak ktoś ma grupę gangster to nie może bić innych gangsterów \

A może bić policje

Proszę o pilną pomoc :)

Rangi w plugine PermissionsEX

Odnośnik do komentarza
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

On damage:

    If attacker has pemission "policja.sk"

       If victim has permission "policja.sk

           Cancel event 

        Else:

            Stop

    Else:

        Stop

 

    If attacker has pemission "gang.sk"

       If victim has permission "gang.sk

           Cancel event 

        Else:

            Stop

    Else:

        Stop

Pisane z telefonu nokia gtx690

Edytowane przez kaol48s
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Dnia Saturday, February 04, 2017 o 12:00, kaol48s napisał:

On damage:

    If attacker has pemission "policja.sk"

       If victim has permission "policja.sk

           Cancel event 

        Else:

            Stop

    Else:

        Stop

 

    If attacker has pemission "gang.sk"

       If victim has permission "gang.sk

           Cancel event 

        Else:

            Stop

    Else:

        Stop

Pisane z telefonu nokia gtx690

Kocham Cię dzięki 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

on damage:

    if attacker has permissions "policja.sk":

      if victim has permissions "policja.sk:

             cancel event

             send "&cNie możesz uderzyć swojego"

            stop

  If attacker has pemission "gang.sk"

       If victim has permission "gang.sk

           Cancel event

          send "&cNie możesz uderzyć swojego"

        Else:

            Stop

    Else:

        Stop

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
[19:39:34 INFO]: [Skript] Reloading afair.sk...
[19:39:34 ERROR]: 'pemission "polic.sk"' is not an item type (afair.sk, line 2: If attacker has pemission "polic.sk"')
[19:39:34 ERROR]: 'permission "polic.sk"' is not an item type (afair.sk, line 3: If victim has permission "polic.sk"')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 5: Else:')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 7: Else:')
[19:39:34 ERROR]: 'pemission "gang.sk"' is not an item type (afair.sk, line 10: If attacker has pemission "gang.sk"')
[19:39:34 ERROR]: 'permission "gang.sk"' is not an item type (afair.sk, line 11: If victim has permission "gang.sk"')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 13: Else:')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 15: Else:')
Spoiler

Pomocy

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Problem sos

[19:39:34 INFO]: [Skript] Reloading afair.sk...

[19:39:34 ERROR]: 'pemission "polic.sk"' is not an item type (afair.sk, line 2: If attacker has pemission "polic.sk"')
[19:39:34 ERROR]: 'permission "polic.sk"' is not an item type (afair.sk, line 3: If victim has permission "polic.sk"')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 5: Else:')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 7: Else:')
[19:39:34 ERROR]: 'pemission "gang.sk"' is not an item type (afair.sk, line 10: If attacker has pemission "gang.sk"')
[19:39:34 ERROR]: 'permission "gang.sk"' is not an item type (afair.sk, line 11: If victim has permission "gang.sk"')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 13: Else:')
[19:39:34 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (afair.sk, line 15: Else:')
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

on damage:
    if attacker has pemission "policja.sk":
        if victim has permission "policja.sk":
            Cancel event
            send "&cNie możesz bić innego &4policjanta" to attacker
        else:
            Stop
    else:
        Stop
    if attacker has pemission "gang.sk":
        if victim has permission "gang.sk":
            Cancel event
            send "&cNie możesz bić innego &4gangstera" to attacker
        else:
            Stop
    else:
        Stop

prosze :)

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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