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

[DL] --Skrypt-- Firma


Rekomendowane odpowiedzi

Opublikowano

SKRYPTY POCZATKOWE:

1.Firma

2.WARP
 

Witam!

Chciałbym pokazać wam moj autorski skrypt na firmy!

Na czym on polega?

Firma może byc założona tylko przez gracza z rangą ELITA!

Komendy:

RAGA ELITA:

/firma zaloz <nazwa firmy> - zakłada firmę o danej nazwie

/firma usun - usuwa firmę

/firma zaproś <nick gracza> - zaprasza gracza do firmy (jedynie i wyłącznie gracza!!!)

/firma wypros <nick gracza> - wyprasza gracza z firmy

RANGA GRACZ:

/firma dolacz <nazwa firmy> -dolacza do firmy tylko po tym jak Elita wysle zaproszenie!!

/firma opusc - opuszcza firmę

Skrypt jest napisany w trakcie nauki języka LUA więc proszę o wyrozumiałość :)

Wersja skryptu: 1.0.0

#====================#
#Autor: TheSeekeer_PL#
#Nazwa: Firma[SA]    #
#Wersja: 1.0.0       #
#====================#
variables:
	{firma.zaloz.%player%} = 0
	{firma.zatrudnij.%player%} = 0
	{firma.dolacz.%player%} = 0

command /firma [<text>] [<text>]:
	trigger:
		if player has permission "seek.dolacz":
			if arg 1 is not set:
				send "&a/frima dolacz <nazwa firmy> &7-dolaczasz do firmy"
				send "&a/firma opusc &7-opuszczasz firme"
		if player has permission "seek.firma":
			if arg 1 is not set:
				send "Aby zalozyc firme wpisz &a/firma zaloz nazwa"
				send "Aby usunac firme wpisz &a/firma usun "
				send "Aby zatrudnic kogos do firmy wpisz &a/firma zatrudnij nick"
				send "Aby wyprosic kogos z firmy wpisz &a/firma wypros nick"
				send "&a/firma zaplac podatek &7-placisz podatek"
				stop
			if arg 1 is "zaloz":
				if arg 2 is not set:
					send "&cNie podales nazwy firmy"
					stop
				if arg 2 is set:
					if {firma.zaloz.%player%} = 0:
						set {firma.dolacz.%player%} to 1
						send "&lZakladasz firme o nazwie &c%arg 2%"
						execute console command "pex user %player% prefix &8[&3%arg 2%&8]&8[&a&lElita&8]&r"
						wait 2 second
						send "&lZalozyles firme o nazwie &c%arg 2%"
						set {firma.zaloz.%player%} to 1
					else:
						send "&lZalozyles juz firme i nie mozesz juz wiecej !!"
						stop
			if arg 1 is "usun":
				if {firma.zaloz.%player%} = 1:
					send "&lWypros graczy z FIRMY ! i poczekaj 10 minut zanim usuniesz!"
					wait 10 minutes
					send "Wyprosiles wszystkich ?"
					wait 1 second
					execute console command "pex user %player% prefix &8[&a&lElita&8]&r"
					wait 1 second
					send "&cTwoja firma zostala pomyslnie usunieta"
					wait 1 second
					set {firma.zaloz.%player%} to 0
					stop
			if arg 1 is "zatrudnij":
				if arg 2 is not set:
					send "Nie podales nicku gracza !"
				if arg 2 is set:
					if {firma.zatrudnij.%player%} = 0:
						set {firma.dolacz.%player%} to 0
						send "Zapraszasz gracz &c%arg 2% &fdo firmy"
						execute player command "msg %arg 2% Zapraszam cie do firmy ! Aby dolaczyc wpisz /firma dolacz <nazwa firmy>"
						stop
			if arg 1 is "wypros":
				if arg 2 is not set:
					send "Nie podales nicku gracza!"
					stop
				if arg 2 is set:
					send "&lWypraszasz gracza &c%arg 2% &f&lz frimy"
					execute console command "pex user %arg 2% prefix &f[&8Gracz&f]"
					execute player command "msg %arg 2% Wypraszam cie z firmy pa :)"
					stop
			if arg 1 is "dolacz":
				if arg 2 is not set:
					send "Nie podales nazwy firmy !"
				if arg 2 is set:
					if player has permission "seek.dolacz":
						if {firma.zatrudnij.%player%} is 0:	
							if {firma.dolacz.%player%} is 0:
								execute console command "pex user %player% prefix &8[&2%arg 2%&8]&8[&fGracz&8]&r"
								send "&lDolaczyles do firmy &c%arg 2%"
								set {firma.zatrudnij.%player%} to 1
								stop
						if {firma.zatrudnij.%player%} is 1:
							send "Jestes juz w firmie ! Aby wyjsc wpisz &a/firma opusc"
							stop
			if arg 1 is "opusc":
				send "Opuszczasz firme !"
				set {firma.zatrudnij.%player%} to 0
				execute console command "pex user %player% prefix &f[&8Gracz&f]"
				stop
				


 

command /set [<text>]:
	trigger:
		if player is op:
			arg is set:
				{seekeer.warp.%arg%} is not set:
					set {seekeer.warp.%argument%} to location of the player
					add "%arg%" to {seekeer.warp.warplist::*}
					message "&bStworzyles warp &c%argument%!"
				else:
					send "&bTaki warp juz istnieje"
					stop
			else:
				send "&cPodaj nazwe warpa"
				stop
		else:
			send "&cBrak pozwolenia"
			stop
command /przenies [<text>]:
	trigger:
		if {seekeer.warp.%argument%} is not set:
			message "&bWarp '%argument%' nie zostal odnaleziony!"
		if {seekeer.warp.%argument%} is set:
			send "&bTeleportacja do &c%argument 1%&b za &c2 &bsekundy!"
			wait 2 seconds
			teleport the player to {seekeer.warp.%argument%}
			stop
command /del [<text>]:
	trigger:
		if player is op:
			arg is set:
				{seekeer.warp.%argument%} is set:
					delete {seekeer.warp.%argument%}
					remove "%arg%" from {seekeer.warp.warplist::*}
					send "&bWarp &c%arg%&b zostal usuniety."
					stop
				send "&bTaki nie istnieje. &c/warplist"
				stop
			send "&bPodaj nazwe warpa. &c/usunwarp <warp>"
			stop
		else:
			send "&cBrak pozwolenia"
			stop
command /warplist:
	trigger:
		{seekeer.warp.warplist::*} is set:
			send "&bLista warpow:"
			send "%{seekeer.warp.warplist::*}%"
			stop
		send "&bBrak dostepnych warpow."
		stop

csHDdb6.png

Opublikowano

No można tak powiedzieć lecz jest to coś innego :)

Firma czyli:

Elita dostaje teren pod firmę i musi tam wybudować swoją własną posesję dzięki której może zarabiać :)

I na tym to polega :)

csHDdb6.png

Opublikowano

rozwiń skrypt o listę pracowników z podziałem na np. pracownik, sekretarka, sprzątaczka, szef, biuro obsługi klienta, dodatkowo czat z nazwa firmy, jakiś system między firmami, rodzaje firm np budowlanka, przemysł, produkcja żywności/itemów, popraw kod i może jakąś ewidencje firm 

Na serwerach znajdziesz mnie pod nickiem: Ogrodnik


 

Opublikowano

FIRMA BUDOWLANA Z POSADAMI !!


Jak to dziala ?


/budowa  - spis all komend


/budowa zaloz <nazwa> - zaklada firme o <nazwia>


/budowa szefuncio <nick> - dodaje posade szefa graczowi


Na chat Bedzie cos takiego [Nazwa firmy][Gracz]Nick


/budowa kopacz <nick> - kopacz w firmie


/budowa budowlaniec <nick> - budowniczy w firmie


/budowa architekt <nick> - architekt firmy


/budowa ksiegowy <nick> - ksiegowy firmy


/budowa zapros <nick> - zaprasza danego gracza do firmy


/budowa wypros <nick> - usuwa danego gracza z firmy


/budowa teleport - teleportuje na warp FIRMA


/budowa lista - lista firm


/budowa region <nazwa regionu> - przydziela gracza ktory wpisal ta komende do regionu ! 


[Pamietaj rob latwe nazwy regionow i zrob komende z ich lista !]


/budowa region wypros <nick> -wyprasza danego gracza z regionu! Czyli posesji firmy!


I to chyba na tyle !


WERSJA 1.0.0


Moga zostac dodane ulepszenia



#====================#
#Autor: TheSeekeer_PL#
#Wersja: 1.0.0 #
#Nazwa: FirmaBOB #
#====================#

#====================#
# Zmienne #
#====================#
variables:
{firma.budowlana.kopacz.%player%} = 0
{firma.budowlana.budowlaniec.%player%} = 0
{firma.budowlana.architekt.%player%} = 0
{firma.budowlana.szefuncio.%player%} = 0
{firma.budowlana.ksiegowy.%player%} = 0
{firma.budowlana.zaloz.%player%} = 0
{firma.budowlana.zaloz.vip.%player%} = 0
{firma.budowlana.zaloz.svip.%player%} = 0
{firma.budowlana.zaloz.elita.%player%} = 0
{firma.region.wez.%player%} = 0
{firma.region.przydziel.%player%} = 0

#====================#
# Opcje #
#====================#
options:
tag: &lBOBFIRM
permission: Brak pozwolenia!
autor: TheSeekeer_PL
firma: &cPosiadasz juz firme!
ranga: &cNie wybrano rangi !
nick: &cNie podales nicku gracza!
nazwafirma: &cNie podales nazwy firmy !
szefuncio: &cPosiadasz juz posade szefa !
kopacz: &cPosiadasz juz posade kopacz!
budowlaniec: &cPosiadasz juz posade budowlaniec!
architekt: &cPosiadasz juz posade architekta!
ksiegowy: &cPosiadasz juz posade Ksiegowy!
lista: &cBrak dostepnych Firm !
region: &cNie wybrales regionu !
nazwaregion: &cZostaje ci przydzielony region %arg 2%!!
#====================#
# KOD #
#====================#

command /budowa [<text>] [<text>] [<text>] [<text>]:
trigger:
if player has permission "seek.bob":
if arg 1 is not set:
send "&a/budowa zaloz <nazwa> <ranga>&7- Zaklada firme o podanej nazwie"
send "&a/budowa szefuncio <nick> &7- Daje szefa firmy"
send "&a/budowa kopacz <nick> &7- Daje Kopacza firmy"
send "&a/budowa budowlaniec <nick> &7- Daje budowniczego firmy"
send "&a/budowa architekt <nick> &7- Daje Architekta firmy"
send "&a/budowa ksiegowy <nick> &7- Daje ksiagowego firmy"
send "&a/budowa zapros <nick> &7- Zaprasza gracza do firmy na dane stanowisko"
send "&a/budowa wypros <nick> &7- Wyprasza gracza z firmy"
send "&a/budowa teleport &7- Teleportuje na miejsce budowy"
send "&a/budowa lista &7- Pokazuje liste pracowników"
stop
#====================#
# Komenda zaloz #
#====================#
if arg 1 is "zaloz":
if arg 2 is not set:
send "Nie podales nazwy firmy oraz rangi!"
stop
if arg 2 is set:
#===GRACZ===#
if player has permission "seek.bob.gracz":
if arg 3 is "Gracz":
if {firma.budowlana.zaloz.%player%} is 0:
{seek.bob.%arg 3%} is not set:
add "%arg 2%" to {seek.bob.list::*}
send "Wlasnie zalozyles firme %arg 2%"
execute console command "pex user %player% prefix &8[&f%arg 2%&8]&8[&fGracz&8]&r"
set {firma.budowlana.zaloz.%player%} to 1
stop
else:
send "Taka firma juz istnieje !"
stop
if {firma.budowlana.zaloz.%player%} is 1:
send "{@firma}"
stop
else:
send "{@ranga}"
stop
else:
send "{@permission}"
stop
#===VIP===#
if player has permission "seek.bob.vip":
if arg 3 is "VIP":
if {firma.budowlana.zaloz.vip.%player%} is 0:
{seek.bob.%arg 3%} is not set:
add "%arg 2%" to {seek.bob.list::*}
send "Wlasnie zakladasz firme %arg 2%"
execute console command "pex user %player% prefix &8[&f%arg 2%&8]&8[&3&lVIP&8]&r"
set {firma.budowlana.zaloz.vip.%player%} to 1
stop
else:
send "Taka firma juz istnieje !"
stop
if {firma.budowlana.zaloz.vip.%player%} is 1:
send "{@firma}"
stop
else:
send "{@ranga}"
stop
else:
send "{@permission}"
stop
#===SVIP===#
if player has permission "seek.bob.svip":
if arg 3 is "SVIP":
if {firma.budowlana.zaloz.svip.%player%} is 0:
{seek.bob.%arg 3%} is not set:
add "%arg 2%" to {seek.bob.list::*}
send "Wlasnie zakladasz firme %arg 2%"
execute console command "pex user %player% prefix &8[&f%arg 2%&8]&8[&e&lSVIP&8]&r"
set {firma.budowlana.zaloz.svip.%player%} to 1
stop
else:
send "Taka firma juz istnieje !"
stop
if {firma.budowlana.zaloz.svip.%player%} is 1:
send "{@firma}"
stop
else:
send "{@ranga}"
stop
else:
send "{@permission}"
stop
#===ELITA===#
if player has permission "seek.bob.Elita":
if arg 3 is "Elita":
if {firma.budowlana.zaloz.elita.%player%} is 0:
{seek.bob.%arg 3%} is not set:
add "%arg 2%" to {seek.bob.list::*}
send "Wlasnie zakladasz firme %arg 2%"
execute console command "pex user %player% &8[&f%arg 2%&8]&8[&a&lElita&8]&r"
set {firma.budowlana.zaloz.elita.%player%} to 1
stop
else:
send "Taka firma juz istnieje !"
stop
if {firma.budowlana.zaloz.elita.%player%} is 1:
send "{@firma}"
stop
if arg 3 is not set:
send "{@ranga}"
stop
else:
send "{@permission}"
stop
#====================#
# Komenda szefuncio #
#====================#
if arg 1 is "szefuncio":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
if {firma.budowlana.szefuncio.%player%} is 0:
send "Wybrales gracza %arg 2% na szefa twojej firmy!"
send "Teraz czekaj na odpowiedz od %arg 2%"
execute player command "msg %arg 2% Hej.Zostaniesz szefem mojej firmy ? Jesli tak to wpisz /budowa przyjmij szefuncio <nazwa firmy>"
stop
#====================#
# Komenda przyjmij #
#====================#
if arg 1 is "przyjmij":
if arg 2 is not set:
send "Aby przyjac posade wpisz /budowa przyjmij szefuncio <nazwa firmy>"
if arg 2 is "szefuncio":
if player has permission "seek.bob.przyjmij":
if arg 3 is set:
send "Wlasnie zostales szefem firmy %arg 3%"
execute console command "pex user %player% prefix &8[&2S&8][&f%arg 3%&8][&fGracz&8]&r"
set {firma.budowlana.szefuncio.%player%} to 1
wait 3 second
set {firma.budowalana.szefuncio.%player%} to 0
stop
else:
send "{@nazwafirma}"
stop
if {firma.budowlana.szefuncio.%player%} is 1:
send "{@szefuncio}"
stop
else:
send "{@permission}"
stop
#====================#
# Komenda kopacz #
#====================#
if arg 1 is "kopacz":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
if arg 3 is set:
if {firma.budowlana.kopacz.%player%} is 0:
send "Gracz %arg 2% zostal dodany jako Kopacz!"
execute console command "pex user %arg 2% prefix &8[&1K&8][&f%arg 3%&8][&fGracz&8]&r"
set {firma.budowlana.kopacz.%player%} to 1
stop
else:
send "{@kopacz}"
stop
else:
send "{@nazwafirma}"
stop
#====================#
#Komenda budowlaniec #
#====================#
if arg 1 is "budowlaniec":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
if arg 3 is set:
if {firma.budowlana.budowlaniec.%player%} is 0:
send "Gracz %arg 2% zostal dodany jako Budowlaniec"
execute console command "pex user %arg 2% prefix &8[&3B&8][&f%arg 3%&8][&fGracz&8]&r"
set {firma.budowlana.budowlaniec.%player%} to 1
stop
else:
send "{@budowlaniec}"
stop
else:
send "{@nazwafirma}"
stop
#====================#
# Komenda architekt #
#====================#
if arg 1 is "architekt":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
if arg 3 is set:
if {firma.budowlana.architekt.%player%} is 0:
send "Gracz %arg 2% zostal dodany jako Architekt"
execute console command "pex user %arg 2% prefix &8[&5A&8][&f%arg 2%&8][&fGracz&8]&r"
set {firma.budowlana.kopacz.%player%} to 1
stop
else:
send "{@architekt}"
stop
else:
send "{@nazwafirma}"
stop
#====================#
# Komenda ksiegowy #
#====================#
if arg 1 is "ksiegowy":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
if arg 3 is set:
if {firma.budowlana.ksiegowy.%player%} is 0:
send "Gracz %arg 2% zostal dodany jako Ksiegowy"
execute console command "pex user %arg 2% prefix &8[&eKS&8][&f%arg 2%&8][&fGracz&8]&r"
set {firma.budowlana.ksiegowy.%player%} to 1
stop
else:
send "{@ksiegowy}"
stop
else:
send "{@nick}"
stop
#====================#
# Komenda zapros #
#====================#
if arg 1 is "zapros":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
send "Zaprosiles gracza %arg 2% do firmy"
execute player command "msg %arg 2% Zapraszam cie do firmy ! Wpisz /budowa dolacz <nazwa firmy>"
stop
#====================#
# Komenda DOLACZ #
#====================#
if arg 1 is "dolacz":
if arg 2 is not set:
send "{@nazwafirma}"
stop
if arg 2 is set:
send "Dolaczyles do firmy %arg 2%! Teraz pisz do wlasciciela firmy o posade!"
stop
#====================#
# Komenda Wypros #
#====================#
if arg 1 is "wypros":
if arg 2 is not set:
send "{@nick}"
stop
if arg 2 is set:
send "Wypraszasz gracza %arg 2% z firmy "
execute console command "pex user %arg 2% prefix &8[&fGracz&8]&r"
execute player command "msg %arg 2% Wyprosilem cie z firmy ! PA"
set {firma.budowlana.szefuncio.%player%} to 0
set {firma.budowlana.kopacz.%player%} to 0
set {firma.budowlana.budowlaniec.%player%} to 0
set {firma.budowlana.architekt.%player%} to 0
set {firma.budowlana.ksiegowy.%player%} to 0
stop
#====================#
#Komenda Teleportacja#
#====================#
if arg 1 is "teleport":
execute player command "warp firma"
stop
#====================#
# Komenda Lista #
#====================#
if arg 1 is "lista":
{seek.bob.list::*} is set:
send "Lista Firm:"
send "%{seek.bob.list::*}%"
stop
else:
send "{@lista}"
stop
#====================#
# Komenda REGION #
#====================#
if arg 1 is "region":
if arg 2 is not set:
send "{@region}"
stop
if arg 2 is set:
if arg 3 is set:
if {firma.region.przydziel.%player%} is 0:
if {firma.region.wez.%player%} is 0:
send "{@nazwaregion}"
execute console command "rg addowner %arg 2% %arg 3%"
wait 3 tick
set {firma.region.przydziel.%player%} to 1
set {firma.region.wez.%player%} to 1
stop
else:
send "Region juz zostal przypisany"
stop
else:
send "Region juz zostal przypisany"
stop
else:
send "{@nick}"
stop
#=====================#
#Komenda REGION DODAJ #
#=====================#
if arg 1 is "dodaj":
if arg 2 is not set:
send "{@nazwaregion}"
stop
if arg 2 is set:
if arg 3 is not set:
send "{@nick}"
stop
if arg 3 is set:
send "Dodales gracza %arg 3% do posesji firmy"
wait 1 tick
execute console command "rg addmember %arg 2% %arg 3%"
stop
#=====================#
#Komenda WyprossRegion#
#=====================#
if arg 1 is "region":
if arg 2 is not set:
send "&a/region wypros nick nazwa dzialki"
stop
if arg 2 is "wypros":
if arg 3 is set:
if arg 4 is set:
execute console command "rg removemember %arg 4% %arg 3%"
send "Wyproszono gracza %arg 3% z dzialki %arg 4%"
stop
#======================#
#Komenda usun firme #
#======================#
if arg 1 is "usun":
if arg 2 is not set:
send "Podaj nazwe firmy !"
stop
if arg 2 is set:
if arg 3 is set:
if {firma.budowlana.zaloz.%player%} is 1:
execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&f"
send "Firma zostala usunieta"
set {firma.budowlana.zaloz.%player%} to 0
set {firma.budowalana.szefuncio.%player%} to 0
stop
else:
send "{@nick}"
stop
else:
send "Nie mozesz usunac firmy ! Poniewaz jej nie posiadasz !"
stop





csHDdb6.png

Opublikowano

no i teraz to mi się podoba. przynajmniej w końcu jakiś lepszy i dłuższy skrypt które naprawdę może się przydać.

Na serwerach znajdziesz mnie pod nickiem: Ogrodnik


 

  • 4 tygodnie później...
Opublikowano
#==========[FIRMAPRO]==========#
#Autor: TheSeekeer_PL          #
#Nazwa: FirmaPro               #
#Wersja: 1.0.0                 #
#==========[FIRMAPRO]==========#

#Zmienne#
variables:
	#Zmienna ZALOZ  +  #
	{firma.zaloz.%player%} = 0
	#Zmienna USUN  +  #
	{firma.usun.%player%} = 1
	#Zmienna Wlasciciel  +  #
	{firma.wlasciciel.%player%} = 0
	#Zmienna Prezes  +  #
	{firma.prezes.%player%} = 0
	#Zmienna Ksiegowy  +  #
	{firma.ksiegowy.%player%} = 0
	#Zmienna Dostawca  +  #
	{firma.dostawca.%player%} = 0
	#Zmienna Sprzedawca  +  #
	{firma.sprzedawca.%player%} = 0
	#Zmienna Kopacz  +  #
	{firma.kopacz.%player%} = 0
	#Zmienna Wyplata#
	{firma.wyplata.%player%} = 0
	#Zmienna Region  +  #
	{firma.region.%player%} = 0
	#Zmienna Materialy  +  #
	{firma.materialy.%player%} = 0
	#Zmienna Region.WEZ  +  #
	{firma.region.wez.%arg 2%} = 0
	
#Opcje#
options:
	tag: &8[&6RC&8]&r
	zaloz: Wlasnie zakladasz firme.
	nzaloz: Nie podales nazwy firmy !
	izaloz: Taka firma juz istnieje !
	wzaloz: Posiadasz juz firme !
	usun: Usuwasz firme !
	nusun: Nie mozesz usunac firmy poniewaz jej nie posiadasz !
	nazwa: Wlasnie zmieniasz nazwe firmy !
	nnazwa: Nie mozesz zmienic juz nazwy poniewaz zrobiles to wczesniej!
	inazwa: Taka nazwa jest juz zajeta!
	wlasciciel: Wlasnie mianowales gracza %arg 2% na wlasciciela!
	prezes: Wlasnie mianowales gracza %arg 3% na prezesa!
	ksiegowy: Wlasnie mianowales gracza %arg 3% na ksiegowego!
	dostawca: Wlasnie mianowales gracza %arg 3% na dostawce!
	sprzedawca: Wlasnie mianowales gracza %arg 3% na sprzedawce!
	kopacz: Wlasnie mianowales gracza %arg 3% na kopacza!
	wyplata: Wlasnie dales wyplate graczowi %arg 2%!
	sprzedaj: Wlasnie sprzedales firme graczowi %arg 2% za cene : %arg 3%.
	
#KOD#
command /firma [<text>] [<text>] [<text>]:
	trigger:
		if arg 1 is not set:
			send "{@tag} Nie wybrales komendy !"
			send "{@tag} Komendy znajdziesz pod : &a/firma pomoc"
			stop
#Zaloz#			
		if arg 1 is "zaloz":
			if arg 2 is not set:
				send "{@tag} {@nzaloz}"
				stop
			if arg 2 is set:
				if {firma.zaloz.%player%} is 0:
					{firma.zaloz.%arg 2%} is not set:
						send "{@tag} {@zaloz}"
						add "%arg 2%" to {firma.zaloz.list::*}
						execute console command "pex user %player% prefix &8[&b%arg 2%&8][&fGracz&8]&r"
						execute console command "pex user %player% add firma.wlasciciel"
						execute console command "pex user %player% add firma.usun"
						execute console command "pex user %player% add firma.pracownicy"
						execute console command "pex user %player% add firma.region"
						set {firma.zaloz.%player%} to 1
						set {firma.usun.%player%} to 0
						stop
					{firma.zaloz.%arg 2%} is set:
						send "{@tag} {@inazwa}"
						stop
				if {firma.zaloz.%player%} is 1:
					send "{@tag} {@wzaloz}"
					stop	
#Wlasciciel#					
		if arg 1 is "wlasciciel":
			if player has permission "firma.wlasciciel":
				if arg 2 is not set:
					send "{@tag} Nie podales nazwy firmy!"
				if arg 2 is set:
					if arg 3 is set:
						if {firma.wlasciciel.%player%} is 0:
							{firma.wlasciciel.%arg 3%} is not set:
								send "{@tag} Przydzieliles Wlasciciela Firmy graczowi %arg 3%"
								execute console command "pex user %arg 3% prefix &8[&2W&8][&b%arg 2%&8][&fGracz&8]&r"
								add "%arg 3%" to {firma.wlasciciel.%arg 2%.list::*}
								set {firma.wlasciciel.%player%} to 1
								stop
							{firma.wlasciciel.%arg 3%} is set:
								send "{@tag} Ta osoba jest juz wlascicielem tej firmy"
								stop
						if {firma.wlasciciel.%player%} is 1:
							send "{@tag} Ta firma posiada juz wlasciciela"
							stop
					if arg 3 is not set:
						send "{@tag} Nie podales nazwy gracza"
						stop
			else:
				send "{@tag} Nie posiadasz uprawnien do tej komendy"
				stop
#List#				
		if arg 1 is "list":
			if arg 2 is not set:
				send "{@tag} Lista firm:"
				send "%{firma.zaloz.list::*}%"
				send "Lista pracownikow danej firmy: &a/firma list <nazwa firmy>"
				stop
			if arg 2 is set:
				send "&lWlasciciel:&r  %{firma.wlasciciel.%arg 2%.list::*}%"
				send "&lPrezes:&r  %{firma.prezes.%arg 2%.list::*}%"
				send "&lKsiegowy:&r  %{firma.ksiegowy.%arg 2%.list::*}%"
				send "&lDostawca:&r  %{firma.dostawca.%arg 2%.list::*}%"
				send "&lSprzedawca:&r  %{firma.sprzedawca.%arg 2%.list::*}%"
				send "&lKopacz:&r  %{firma.kopacz.%arg 2%.list::*}%"
				stop
#usun#				
		if arg 1 is "usun":
			if arg 2 is not set:
				send "{@tag} Podaj nazwe swojej firmy !
			if arg 2 is set:
				if {firma.usun.%player%} is 0:
					send "{@tag} Zanim usuniesz firme usun pracownikĂłw!
					send "&a/usun wlasciciel <nick>"
					send "&a/usun prezes <nick>"
					send "&a/usun ksiegowy <nick>"
					send "&a/usun dostawca <nick>"
					send "&a/usun sprzedawca <nick>"
					send "&a/usun kopacz <nick>"
					send "&cStosuj kolejke ! Zaczynaj od usuwania wlasciciela !!!"
					stop
			if arg 2 is "Wlasciciel":
				if arg 3 is set:
					send "Usuwasz wlasciciela firmy !"
					execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&r"
					stop
				if arg 3 is not set:
					send "{@tag} Podaj nick Wlasciciela !"
					stop
			if arg 2 is "Prezes":
				if arg 3 is set:
					send "Usuwasz Prezesa firmy"
					execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&r"
					stop
				if arg 3 is not set:
					send "{@tag} Podaj nick Prezesa !"
					stop
			if arg 2 is "Ksiegowy":
				if arg 3 is set:
					send "Usuwasz Ksiegowego firmy"
					execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&r"
					stop
				if arg 3 is not set:
					send "{@tag} Podaj nick Ksiegowego !"
					stop
			if arg 2 is "Dostawca":
				if arg 3 is set:
					send "Usuwasz Dostawce firmy"
					execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&r"
					stop
				if arg 3 is not set:
					send "{@tag} Podaj nick Dostawcy !"
					stop
			if arg 2 is "Sprzedawca":
				if arg 3 is set:
					send "Usuwasz Sprzedawce firmy"
					execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&r"
					stop
				if arg 3 is not set:
					send "{@tag} Podaj nick Sprzedawcy !"
					stop
			if arg 2 is "Kopacz":
				if arg 3 is set:
					send "Usuwasz Kopacza firmy"
					execute console command "pex user %arg 3% prefix &f[&8Gracz&f]&r"
					stop
				if arg 3 is not set:
					send "{@tag} Podaj nick Kopacza !"
					stop
			if arg 2 is "firme":
				if arg 3 is set:
					{firma.zaloz.list::*} is set:
						remove "%arg 3%" from {firma.zaloz.list::*}
						execute console command "pex user %player% prefix &f[&8Gracz&f]&r"
						set {firma.usun.%player%} to 1
						set {firma.zaloz.%player%} to 0
						set {firma.nazwa.%player%} to 0
						set {firma.region.%player%} to 0
						execute console command "pex user %player% remove firma.wlasciciel"
						execute console command "pex user %player% remove firma.usun"
						execute console command "pex user %player% remove firma.region"
						execute console command "pex user %player% remove firma.pracownicy"
						stop
#Region#						
		if arg 1 is "region":
			if player has permission "frima.region":
				if arg 2 is set:
					if {firma.region.%player%} is 0:
						if {firma.region.wez.%arg 2%} is 0:
							execute player command "warp firma"
							execute console command "rg addowner %arg 2% %player%"
							set {firma.region.%player%} to 1
							set {firma.region.wez.%arg 2%} to 1
							stop
						if {firma.region.wez.%arg 2%} is 1:
							send "Ten region jest zajety!!"
					if {firma.region.%player%} is 1:
						send "Ty i twoja firma posiadacie juz region!I nie mozecie juz wiecej !"
						stop
				if arg 2 is not set:
					send "Regiony:"
					send "1,2,3,4,5,6,7,8,9,10"
					send "Wiecej regionĂłw aktualnie nie potrzeba!"
					stop
#Prezes#					
		if arg 1 is "prezes":
			if player has permission "firma.pracownicy":
				if arg 2 is set:
					if arg 3 is set:
						if {firma.prezes.%player%} is 0:
							{firma.prezes.%arg 2%.list::*} is not set:
								add "%arg 3%" to {firma.prezes.%arg 2%.list::*}
								send "{@tag} {@prezes}"
								execute console command "pex user %arg 3% prefix &8[&fP&8][&b%arg 2%&8][&fGracz&8]&r"
								set {firma.prezes.%player%} to 1
								stop
							{firma.prezes.%arg 2%.list::*} is set:
								send "{@tag} Ta osoba jest juz Prezesem firmy !"
								stop
						if {firma.prezes.%player%} is 1:
							send "{@tag} Ta firma posiada juz prezesa"
							stop
					if arg 3 is not set:
						send "{@tag} Podaj nick gracza !!"
						stop
				if arg 2 is not set:
					send "{@tag} Nie podales nazwy firmy !"
					stop
			else:
				send "{@tag} Nie posiadasz uprawnien do wykonania tego polecenia"
				stop
#Ksiegowy#				
		if arg 1 is "ksiegowy":
			if player has permission "firma.pracownicy":
				if arg 2 is set:
					if arg 3 is set:
						if {firma.ksiegowy.%player%} is 0:
							{firma.ksiegowy.%arg 2%.list::*} is not set:
								add "%arg 3%" to {firma.ksiegowy.%arg 2%.list::*}
								send "{@tag} {@ksiegowy}"
								execute console command "pex user %arg 3% prefix &8[&fKS&8][&b%arg 2%&8][&fGracz&8]&r"
								set {firma.ksiegowy.%player%} to 1
								stop
							{firma.ksiegowy.%arg 2%.list::*} is set:
								send "{@tag} Ta osoba jest juz ksiegowym firmy !"
								stop
						if {firma.ksiegowy.%player%} is 1:
							send "{@tag} Ta firma posiada juz ksiegowego"
							stop
					if arg 3 is not set:
						send "{@tag} Podaj nick gracza !!"
						stop
				if arg 2 is not set:
					send "{@tag} Nie podales nazwy firmy !"
					stop
			else:
				send "{@tag} Nie posiadasz uprawnien do wykonania tego polecenia"
				stop
#Dostawca#				
		if arg 1 is "dostawca":
			if player has permission "firma.pracownicy":
				if arg 2 is set:
					if arg 3 is set:
						if {firma.dostawca.%player%} is 0:
							{firma.dostawca.%arg 2%.list::*} is not set:
								add "%arg 3%" to {firma.dostawca.%arg 2%.list::*}
								send "{@tag} {@dostawca}"
								execute console command "pex user %arg 3% prefix &8[&fD&8][&b%arg 2%&8][&fGracz&8]&r"
								set {firma.dostawca.%player%} to 1
								stop
							{firma.dostawca.%arg 2%.list::*} is set:
								send "{@tag} Ta osoba jest juz Dostawca firmy !"
								stop
						if {firma.dostawca.%player%} is 1:
							send "{@tag} Ta firma posiada juz dostawca"
							stop
					if arg 3 is not set:
						send "{@tag} Podaj nick gracza !!"
						stop
				if arg 2 is not set:
					send "{@tag} Nie podales nazwy firmy !"
					stop
			else:
				send "{@tag} Nie posiadasz uprawnien do wykonania tego polecenia"
				stop
#Sprzedawca#				
		if arg 1 is "sprzedawca":
			if player has permission "firma.pracownicy":
				if arg 2 is set:
					if arg 3 is set:
						if {firma.sprzedawca.%player%} is 0:
							{firma.sprzedawca.%arg 2%.list::*} is not set:
								add "%arg 3%" to {firma.sprzedawca.%arg 2%.list::*}
								send "{@tag} {@sprzedawca}"
								execute console command "pex user %arg 3% prefix &8[&fS&8][&b%arg 2%&8][&fGracz&8]&r"
								set {firma.sprzedawca.%player%} to 1
								stop
							{firma.sprzedawca.%arg 2%.list::*} is set:
								send "{@tag} Ta osoba jest juz Sprzedawca firmy !"
								stop
						if {firma.sprzedawca.%player%} is 1:
							send "{@tag} Ta firma posiada juz sprzedawca"
							stop
					if arg 3 is not set:
						send "{@tag} Podaj nick gracza !!"
						stop
				if arg 2 is not set:
					send "{@tag} Nie podales nazwy firmy !"
					stop
			else:
				send "{@tag} Nie posiadasz uprawnien do wykonania tego polecenia"
				stop
#Kopacz#				
		if arg 1 is "kopacz":
			if player has permission "firma.pracownicy":
				if arg 2 is set:
					if arg 3 is set:
						if {firma.kopacz.%player%} is 0:
							{firma.kopacz.%arg 2%.list::*} is not set:
								add "%arg 3%" to {firma.kopacz.%arg 2%.list::*}
								send "{@tag} {@kopacz}"
								execute console command "pex user %arg 3% prefix &8[&fP&8][&b%arg 2%&8][&fGracz&8]&r"
								set {firma.kopacz.%player%} to 1
								stop
							{firma.kopacz.%arg 2%.list::*} is set:
								send "{@tag} Ta osoba jest juz Kopaczem firmy !"
								stop
						if {firma.kopacz.%player%} is 1:
							send "{@tag} Ta firma posiada juz kopacza"
							stop
					if arg 3 is not set:
						send "{@tag} Podaj nick gracza !!"
						stop
				if arg 2 is not set:
					send "{@tag} Nie podales nazwy firmy !"
					stop
			else:
				send "{@tag} Nie posiadasz uprawnien do wykonania tego polecenia"
				stop				
#Materialy#
		if arg 1 is "materialy":
			if player has permission "firma.pracownicy":
				if {firma.materialy.%player%} is 0:
					execute console command "kit narzedzia %player%"
					set {firma.materialy.%player%} to 1
					stop
				if {firma.materialy.%player%} is 1:
					send "{@tag} Nie mozesz juz!"
					stop

NOWA FIRMA !

csHDdb6.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...