Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem]Skrypt


Rekomendowane odpowiedzi

Opublikowano

R

E

K

L

A

M

A

Siemanko!

Mam problem ze skyptem na tpr. Napisalem sam oto kod

options:
	x_min: 1000
	x_max: 4000
	z_min: 1000
	z_max: 4000
command /tpr:
	trigger:
		if player has permissions "loswy.tpr":
			send "&6&nZostales teleportowany w losowe miejsce na mapie!"
			set {_x} to random integer between {@x_min} and {@x_max}
			set {_y} to 256
			set {_z} to random integer between {@z_min} and {@z_max}
			execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"
			apply speed 2 to player for 10 seconds
			execute console command "/god %player%"
			wait 10 seconds
			execute console command "/god %player%"

Wszystko fajnie dziala :)

Ale jak ktos sie bije. Mam CombatLog i podczas pvp nie da sie komend wpisywac. No i jak ktos wpisze /tpr to go nie tpa ale gaje mu speeda i goda na 10 sekund. I wlasnie w tym problem :(

Prosze o pomoc moze da sie jakos podczas pvp zablokowac te komende?

Pozdro!

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano

Dodaj to do skryptu:

on damage of player:
	set {zmienna::%attacker%} to true
	set {zmienna::%victim%} to true
	wait 10 seconds
	set {zmienna::%attacker%} to false
	set {zmienna::%victim%} to false
	
on join:
	set {zmienna::%player%} to false

Oraz do komendy /tpr dodaj sprawdzanie czy {zmienna::%player%} jest fałszem.

if {zmienna::%player%} is false
Opublikowano

 

Dodaj to do skryptu:

on damage of player:
	set {zmienna::%attacker%} to true
	set {zmienna::%victim%} to true
	wait 10 seconds
	set {zmienna::%attacker%} to false
	set {zmienna::%victim%} to false
	
on join:
	set {zmienna::%player%} to false

Oraz do komendy /tpr dodaj sprawdzanie czy {zmienna::%player%} jest fałszem.

if {zmienna::%player%} is false

Moglbys mi to polaczyc bo cos mi nie idzie :/

W configu CombatLoga możesz dodać zablokowane komendy typu /tpr itd.

To nie dziala :/

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano


options:

x_min: 1000

x_max: 4000

z_min: 1000

z_max: 4000

command /tpr:

trigger:

if {zmienna::%player%} is false:

if player has permissions "loswy.tpr":

send "&6&nZostales teleportowany w losowe miejsce na mapie!"

set {_x} to random integer between {@x_min} and {@x_max}

set {_y} to 256

set {_z} to random integer between {@z_min} and {@z_max}

execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"

apply speed 2 to player for 10 seconds

execute console command "/god %player%"

wait 10 seconds

execute console command "/god %player%"

Opublikowano

Dalej jest to samo! Podczas pvp nie tepnie ale da god i speed :(

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano

W combatlog jest coś w stylu teleport-during-combat, zmien to sam tak zrobilem i dzialalo

Opublikowano

To tak, zrób takie coś:

options:
    x_min: 1000
    x_max: 4000
    z_min: 1000
    z_max: 4000
command /tpr:
    trigger:
        if {zmienna::%player%} is false:
            if player has permissions "loswy.tpr":
                send "&6&nZostales teleportowany w losowe miejsce na mapie!"
                set {_x} to random integer between {@x_min} and {@x_max}
                set {_y} to 256
                set {_z} to random integer between {@z_min} and {@z_max}
                teleport player to (%{_x}%, %{_y}%, %{_z}%)
                apply speed 2 to player for 10 seconds
                execute console command "/god %player%"
                wait 10 seconds
                execute console command "/god %player%"

|----Jedyny serwis z darmowymi skinami!----|


|------------Darmowe-Skiny.PL---------------|


|----Skiny i przedmioty do CS:GO, TF2----|


|------------------------------------------------|


|DOTA2, WarFrame i innych gier ze Steama!|


|--------------Start: NIEDŁUGO!!!--------------|

Opublikowano

W combatlog jest coś w stylu teleport-during-combat, zmien to sam tak zrobilem i dzialalo

Nie moge tego znalesć

Oto moj confing:

############################################################
# +-------- Designed and Developed by JackProehl --------+ #
# |--- Please consider donating to my PayPal account. ---| #
# +----------------- [email protected] ------------------+ #
############################################################

# **** WATCH VIDEO ON PLUGIN PAGE FOR CONFIG HELP! **** 
# **** http://dev.bukkit.org/server-mods/combatlog **** 

# Add me on Skype (John.Proehl) if you have any issues.

# Please report all bugs and glitches on BukkitDev.

# Do not backspace the Version number!
Version: 1.7.11

############################################################
# +------------------------------------------------------+ #
# |                     Miscellaneous                    | #
# +------------------------------------------------------+ #
############################################################

# Set UpdateCheck-Enabled to true to check for available updates.
UpdateCheck-Enabled: true

# Set MOTD-Enabled to true to send players a message upon logging in.
MOTD-Enabled: true

# Set Broadcast-Enabled to true to broadcast when a player CombatLogs.
Broadcast-Enabled: true
  
############################################################
# +------------------------------------------------------+ #
# |                        Combat                        | #
# +------------------------------------------------------+ #
############################################################

# Set Tag-Duration to how long a player is in Combat in seconds.
# Set PvP-Enabled to true to enable tagging from Player vs Player combat.
# Set PvE-Enabled to true to enable tagging from Player vs Mob combat.
Tag-Duration: 10
PvP-Enabled: true
PvE-Enabled: false

# Add modes you want removed during Combat under Remove-Modes.
# Available Modes: creative, fly, disguise.
Remove-Modes:
- fly
- disguise

# Set onLagout to true to remove CombatTags when players lag out.
# Set onKick to true to remove CombatTags when players are kicked.
Remove-Tag-On-Kick: true
Remove-Tag-On-Lagout: false

# Set Remove-Potions-Enabled to true to remove Potions.
# List potion effects you want removed under Potions.
Remove-Potions-Enabled: true
Potions:
- invisibility

# Set Block-Commands-Enabled to true to block Commands during Combat.
# Set Block-All-Commands to true to block all commands during Combat.
# List commands you want blocked under Commands.
Block-Commands-Enabled: true
Block-All-Commands: true
Commands:
- home
- spawn
- tpa
- tpaccept
- tpahere
- warp
- back
- tpr

# Set Block-Teleportation-Enable to true to block all teleportation.
# Set Block-Enderpearls-Enabled to true to block enderpearling.
Block-Teleportation-Enabled: true
Block-Enderpearls-Enabled: true

# Set Disabled-Worlds-Enabled to true to disable CombatTag in worlds listed under Worlds.
# List the worlds you want disabled under Worlds.
Disabled-Worlds-Enabled: true
Worlds:
- world_custom

############################################################
# +------------------------------------------------------+ #
# |                      Punishments                     | #
# +------------------------------------------------------+ #
############################################################

# Set Enabled to true to fine players when they CombatLog.
# Set Amount to the amount of money you want the fine to be.
Fine:
  Enabled: false
  Amount: 100.00

# Set Inventory to true to drop players' inventories when they CombatLog.
# Set Armor to true to drop players' armor when they CombatLog.
# Set Exp to true to drop players' experience points when they CombatLog.
Drop:
  Inventory: true
  Armor: true
  Exp: true

# Set Enabled to true to kill players when they CombatLog.
Kill:
  Enabled: true

# Set Enabled to true to temporarily ban players when they CombatLog.
# Set Duration to how long you want them to be banned for in seconds.
Ban:
  Enabled: false
  Duration: 60

 

To tak, zrób takie coś:

options:
    x_min: 1000
    x_max: 4000
    z_min: 1000
    z_max: 4000
command /tpr:
    trigger:
        if {zmienna::%player%} is false:
            if player has permissions "loswy.tpr":
                send "&6&nZostales teleportowany w losowe miejsce na mapie!"
                set {_x} to random integer between {@x_min} and {@x_max}
                set {_y} to 256
                set {_z} to random integer between {@z_min} and {@z_max}
                teleport player to (%{_x}%, %{_y}%, %{_z}%)
                apply speed 2 to player for 10 seconds
                execute console command "/god %player%"
                wait 10 seconds
                execute console command "/god %player%"

Pokazuje mi 19 bledow w tym

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano

Pokazuje mi 19 bledow w tym

 

Usuń spacje i zamień je na TAB'y, może coś da, ponieważ to jest takie pomieszane, że u niektórych działają tylko spacje, a u niektórych TAB'y. ;3

Opublikowano

Mi tam działa

|----Jedyny serwis z darmowymi skinami!----|


|------------Darmowe-Skiny.PL---------------|


|----Skiny i przedmioty do CS:GO, TF2----|


|------------------------------------------------|


|DOTA2, WarFrame i innych gier ze Steama!|


|--------------Start: NIEDŁUGO!!!--------------|

Opublikowano
options:
	x_min: 1000
	x_max: 4000
	z_min: 1000
	z_max: 4000
variables:
	{pvp.%player%} = false
command /tpr:
	trigger:
		if {pvp.%player%} is false:
			if player has permissions "loswy.tpr":
				send "&6&nZostales teleportowany w losowe miejsce na mapie!"
				set {_x} to random integer between {@x_min} and {@x_max}
				set {_y} to 256
				set {_z} to random integer between {@z_min} and {@z_max}
				teleport player to (%{_x}%, %{_y}%, %{_z}%)
				apply speed 2 to player for 10 seconds
				execute console command "/god %player%"
				wait 10 seconds
				execute console command "/god %player%"
				stop trigger
			else:
				send "&cBrak permissi" to player
				stop trigger
		else if {pvp.%player%} is true:
			send "&cJestes w trakcie walki, nie mozesz sie teleportowac" to player
			stop trigger
on damage:
	attacker is player
	victim is player
	set {pvp.%attacker%} to true
	set {pvp.%victim%} to true
	send "&cJestes w trakcie pvp" to attacker and victim
	wait 10 seconds
	set {pvp.%attacker%} to false
	set {pvp.%victim%} to false
	send "&aNie jestes juz w trakcie pvp" to attacker and victim
	stop trigger

troche bardziej zmieniłem ale może zadziała

Opublikowano

Nie moge tego znalesć

Oto moj confing:

############################################################
# +-------- Designed and Developed by JackProehl --------+ #
# |--- Please consider donating to my PayPal account. ---| #
# +----------------- [email protected] ------------------+ #
############################################################

# **** WATCH VIDEO ON PLUGIN PAGE FOR CONFIG HELP! **** 
# **** http://dev.bukkit.org/server-mods/combatlog **** 

# Add me on Skype (John.Proehl) if you have any issues.

# Please report all bugs and glitches on BukkitDev.

# Do not backspace the Version number!
Version: 1.7.11

############################################################
# +------------------------------------------------------+ #
# |                     Miscellaneous                    | #
# +------------------------------------------------------+ #
############################################################

# Set UpdateCheck-Enabled to true to check for available updates.
UpdateCheck-Enabled: true

# Set MOTD-Enabled to true to send players a message upon logging in.
MOTD-Enabled: true

# Set Broadcast-Enabled to true to broadcast when a player CombatLogs.
Broadcast-Enabled: true
  
############################################################
# +------------------------------------------------------+ #
# |                        Combat                        | #
# +------------------------------------------------------+ #
############################################################

# Set Tag-Duration to how long a player is in Combat in seconds.
# Set PvP-Enabled to true to enable tagging from Player vs Player combat.
# Set PvE-Enabled to true to enable tagging from Player vs Mob combat.
Tag-Duration: 10
PvP-Enabled: true
PvE-Enabled: false

# Add modes you want removed during Combat under Remove-Modes.
# Available Modes: creative, fly, disguise.
Remove-Modes:
- fly
- disguise

# Set onLagout to true to remove CombatTags when players lag out.
# Set onKick to true to remove CombatTags when players are kicked.
Remove-Tag-On-Kick: true
Remove-Tag-On-Lagout: false

# Set Remove-Potions-Enabled to true to remove Potions.
# List potion effects you want removed under Potions.
Remove-Potions-Enabled: true
Potions:
- invisibility

# Set Block-Commands-Enabled to true to block Commands during Combat.
# Set Block-All-Commands to true to block all commands during Combat.
# List commands you want blocked under Commands.
Block-Commands-Enabled: true
Block-All-Commands: true
Commands:
- home
- spawn
- tpa
- tpaccept
- tpahere
- warp
- back
- tpr

# Set Block-Teleportation-Enable to true to block all teleportation.
# Set Block-Enderpearls-Enabled to true to block enderpearling.
Block-Teleportation-Enabled: true
Block-Enderpearls-Enabled: true

# Set Disabled-Worlds-Enabled to true to disable CombatTag in worlds listed under Worlds.
# List the worlds you want disabled under Worlds.
Disabled-Worlds-Enabled: true
Worlds:
- world_custom

############################################################
# +------------------------------------------------------+ #
# |                      Punishments                     | #
# +------------------------------------------------------+ #
############################################################

# Set Enabled to true to fine players when they CombatLog.
# Set Amount to the amount of money you want the fine to be.
Fine:
  Enabled: false
  Amount: 100.00

# Set Inventory to true to drop players' inventories when they CombatLog.
# Set Armor to true to drop players' armor when they CombatLog.
# Set Exp to true to drop players' experience points when they CombatLog.
Drop:
  Inventory: true
  Armor: true
  Exp: true

# Set Enabled to true to kill players when they CombatLog.
Kill:
  Enabled: true

# Set Enabled to true to temporarily ban players when they CombatLog.
# Set Duration to how long you want them to be banned for in seconds.
Ban:
  Enabled: false
  Duration: 60

Pokazuje mi 19 bledow w tym

Block-Teleportation-Enabled: true <<<< zmien na false

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...