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

[Szukam] skryptu na punkty ujemne i punkty dodatnie


Rekomendowane odpowiedzi

Opublikowano

szukam skryptu na na punkty ujemne i punkty dodatnie czyli jeżeli gracz zrobi coś dobrze dostaje punkty dodatnie admin mu przydziela a jeżeli coś złego to dostaje - punkty jak jest - 200 to jest tak zwana nagana u administratora i kara w postaci bana admin daje i aby każdy gracz mógł sprawdzić ile ma punktów ujemnych dodatnich ile nagan i ile punktów neutralnych 

 

Oraz pomoże ktoś z tym skryptem 

 

KOD

on script load:
	set {ad.1} to "admin1" parsed as offlineplayer #Ustawiasz nick admina
	set {ad.1.sk} to "skype" #Ustawiasz nazwe skype admina
	
	set {ad.2} to "admin2x" parsed as offlineplayer
	set {ad.2.sk} to "sws"
	
	set {ad.3} to "admin3" parsed as offlineplayer
	set {ad.3.sk} to "skype3"
	
	set {ad.a} to 1 #Ustawiasz ile masz wyzej wypisanych adminow
command /ad:
	trigger:
		send "&eAdministracja:"
		loop {ad.a} times:
			if {ad.%loop-number%} is online:
				send "&a%{ad.%loop-number%}% &7- &b%{ad.%loop-number%.sk}%"
			else:
				send "&c%{ad.%loop-number%}% &7- &b%{ad.%loop-number%.sk}%"

Błędy 

http://scr.hu/42dl/xqfvb

Jeżeli odpowiadasz na moją odpowiedź użyj opcji "Cytuj" lub oznacz mnie w poście @adam23450

 

Opublikowano
on load:
	loop all players:
		kick loop-player due to "&7Wejdz ponownie na serwer!"
on join:
	{punkty::%player%} is not set:
		set {punkty::%player%} to 1000
command /gracz [<offline player=%player%>]:
	description: Pozwala na sprawdzenie punktow innego gracza
	trigger:
		if arg is set:
			{punkty::%arg%} is set:
				send "&8> &7Punkty: &6%{punkty::%arg%}%"
			{punkty::%arg%} is not set:
				send "&8> &cGracza o takim nicku nie ma w bazie danych!"
			stop
		else:
				send "&8> &7Punkty: &6%{punkty::%player%}%
command /punkty [<text>] [<player>] [<integer>]:
	description: Zarzadzanie punktami gracza
	trigger:
			arg 1 is not set:
				send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is not "set" or "add" or "remove":
				send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is "set":
				if arg 2 is set:
					if arg 3 is set:
						if {punkty::%arg 2%} is set:
							set {punkty::%arg 2%} to arg 3
							send "&8> &7Dodano punkty: &6%arg 2%&7!"
						else:
							send "&8> &cGracza o takim nicku nie ma w bazie danych!"
					else:
						send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
				else:
					send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is "add":
				if arg 2 is set:
					if arg 3 is set:
						if {punkty::%arg 2%} is set:
							add arg 3 to {punkty::%arg 2%}
							send "&8> &7Dodano punkty: &6%arg 2%&7!"
						else:
							send "&8> &cGracza o takim nicku nie ma w bazie danych!"
					else:
						send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
				else:
					send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is "remove":
				if arg 2 is set:
					if arg 3 is set:
						if {punkty::%arg 2%} is set:
							remove arg 3 from {punkty::%arg 2%}
							send "&8> &7Usunieto punkty: &6%arg 2%&7!"
						else:
							send "&8> &cGracza o takim nicku nie ma w bazie danych!"
					else:
						send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
				else:
					send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			stop
		else:
			send "&8> &cNie masz uprawnien do uzywania tej komendy! &7(&6punkty.admin&7)"

/punkty set <gracz> <ilość> - ustawia ilość punktów dla gracza

/punkty add <gracz> <ilość> - dodaje ilość punktów dla gracza

/punkty remove <gracz> <ilość> - usuwa ilość punktów dla gracza

/gracz <nick> - wyświetla ilość punktów danego gracza

Opublikowano
on load:
	loop all players:
		kick loop-player due to "&7Wejdz ponownie na serwer!"
on join:
	{punkty::%player%} is not set:
		set {punkty::%player%} to 1000
command /gracz [<offline player=%player%>]:
	description: Pozwala na sprawdzenie punktow innego gracza
	trigger:
		if arg is set:
			{punkty::%arg%} is set:
				send "&8> &7Punkty: &6%{punkty::%arg%}%"
			{punkty::%arg%} is not set:
				send "&8> &cGracza o takim nicku nie ma w bazie danych!"
			stop
		else:
				send "&8> &7Punkty: &6%{punkty::%player%}%
command /punkty [<text>] [<player>] [<integer>]:
	description: Zarzadzanie punktami gracza
	trigger:
			arg 1 is not set:
				send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is not "set" or "add" or "remove":
				send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is "set":
				if arg 2 is set:
					if arg 3 is set:
						if {punkty::%arg 2%} is set:
							set {punkty::%arg 2%} to arg 3
							send "&8> &7Dodano punkty: &6%arg 2%&7!"
						else:
							send "&8> &cGracza o takim nicku nie ma w bazie danych!"
					else:
						send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
				else:
					send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is "add":
				if arg 2 is set:
					if arg 3 is set:
						if {punkty::%arg 2%} is set:
							add arg 3 to {punkty::%arg 2%}
							send "&8> &7Dodano punkty: &6%arg 2%&7!"
						else:
							send "&8> &cGracza o takim nicku nie ma w bazie danych!"
					else:
						send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
				else:
					send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			arg 1 is "remove":
				if arg 2 is set:
					if arg 3 is set:
						if {punkty::%arg 2%} is set:
							remove arg 3 from {punkty::%arg 2%}
							send "&8> &7Usunieto punkty: &6%arg 2%&7!"
						else:
							send "&8> &cGracza o takim nicku nie ma w bazie danych!"
					else:
						send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
				else:
					send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
			stop
		else:
			send "&8> &cNie masz uprawnien do uzywania tej komendy! &7(&6punkty.admin&7)"

/punkty set <gracz> <ilość> - ustawia ilość punktów dla gracza

/punkty add <gracz> <ilość> - dodaje ilość punktów dla gracza

/punkty remove <gracz> <ilość> - usuwa ilość punktów dla gracza

/gracz <nick> - wyświetla ilość punktów danego gracza

 

 

 

wywałiło błędy 

 

[11:49:02] [server thread/INFO]: adamek0123 issued server command: /skript reload all

[11:49:02] [server thread/INFO]: adamek0123 lost connection: ?7Wejdz ponownie na serwer!
[11:49:02] [server thread/INFO]: 1234
[11:49:30] [server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading the config and all scripts...[m
[11:49:30] [server thread/INFO]: Loaded a total of 10567 english aliases
[11:49:30] [server thread/WARN]: There are no aliases defined for the following ids: 160, 161, 162, 163, 164, 174, 175, 422
[11:49:31] [server thread/ERROR]: indentation error: expected 3 tabs, but found 4 tabs (plik.sk, line 17: send "&8> &7Punkty: &6%{punkty::%player%}%')
[11:49:31] [server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (plik.sk, line 16: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (plik.sk, line 21: arg 1 is not set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 22: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (plik.sk, line 23: arg 1 is not "set" or "add" or "remove":')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 24: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (plik.sk, line 25: arg 1 is "set":')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 26: if arg 2 is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 27: if arg 3 is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 28: if {punkty::%arg 2%} is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 29: set {punkty::%arg 2%} to arg 3')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 30: send "&8> &7Dodano punkty: &6%arg 2%&7!"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 31: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 32: send "&8> &cGracza o takim nicku nie ma w bazie danych!"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 33: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 34: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 35: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 36: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (plik.sk, line 37: arg 1 is "add":')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 38: if arg 2 is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 39: if arg 3 is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 40: if {punkty::%arg 2%} is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 41: add arg 3 to {punkty::%arg 2%}')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 42: send "&8> &7Dodano punkty: &6%arg 2%&7!"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 43: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 44: send "&8> &cGracza o takim nicku nie ma w bazie danych!"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 45: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 46: send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 47: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 48: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (plik.sk, line 49: arg 1 is "remove":')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 50: if arg 2 is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 51: if arg 3 is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 52: if {punkty::%arg 2%} is set:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 53: remove arg 3 from {punkty::%arg 2%}')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 54: send "&8> &7Usunieto punkty: &6%arg 2%&7!"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 55: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 7 tabs (plik.sk, line 56: send "&8> &cGracza o takim nicku nie ma w bazie danych!"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 57: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 6 tabs (plik.sk, line 58: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 4 tabs (plik.sk, line 59: else:')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 5 tabs (plik.sk, line 60: send "&8> &cPrawidlowe uzycie: &6/punkty &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"')
[11:49:31] [server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (plik.sk, line 61: stop')
[11:49:31] [server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (plik.sk, line 62: else:')
[11:49:31] [server thread/INFO]: Loaded 22 scripts with a total of 16 triggers and 24 commands in 0.65 seconds

[11:49:31] [server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 43 errors while reloading the config and all scripts![m

 

@Seldek IV

Jeżeli odpowiadasz na moją odpowiedź użyj opcji "Cytuj" lub oznacz mnie w poście @adam23450

 

Opublikowano

@Seldek IV możesz poprawić te błędy 


@Seldek IV a możesz jeszcze dodać naganę ? i jak wpisuje /gracz to pojawia się punkty i nagany (ILOSC NAGAN)

Jeżeli odpowiadasz na moją odpowiedź użyj opcji "Cytuj" lub oznacz mnie w poście @adam23450

 

Opublikowano

@Seldek IV pomożesz z tym proszę?? lub ktoś inny pomoże ? 

Jeżeli odpowiadasz na moją odpowiedź użyj opcji "Cytuj" lub oznacz mnie w poście @adam23450

 

Opublikowano

@ref

Jeżeli odpowiadasz na moją odpowiedź użyj opcji "Cytuj" lub oznacz mnie w poście @adam23450

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...