cezapro35
Zombi Katili
- En iyi cevaplar
- 0
Merhaba Arkadaşlar;
Karşınız da bugün bütün rütbelere tek bir komutla yetki verme ve silme sistemi yaptım.
Onu sizinle paylaşacağım.
Resim yoktur kolay skriptdir.
Anlatıcağım sizlere.
Anlatım;
Kolayca rütbe ekleme yaptım.
komut /rütbe ( ekle - sil )
Örneğin:
/rütbe ekle essentials.chat.color
tarzında.
KOD;
Karşınız da bugün bütün rütbelere tek bir komutla yetki verme ve silme sistemi yaptım.
Onu sizinle paylaşacağım.
Resim yoktur kolay skriptdir.
Anlatıcağım sizlere.
Anlatım;
Kolayca rütbe ekleme yaptım.
komut /rütbe ( ekle - sil )
Örneğin:
/rütbe ekle essentials.chat.color
tarzında.
KOD;
C#:
options:
rutbeismi.1 : acemi
rutbeismi.2 : uzman
rutbeismi.3 : kahraman
command /rütbe [<Text>] [<Text>]:
trigger:
if player has permission "mainmup.groupmanager"
if arg 1 is "ekle":
if arg 2 is set:
execute console command "mangaddp {@rutbeismi.1} %arg 2%"
execute console command "mangaddp {@rutbeismi.2} %arg 2%"
execute console command "mangaddp {@rutbeismi.3} %arg 2%"
send "&aBaşarıyla &f%arg-2% &ayetkisi eklendi!" to player
else:
send "&cBir yetki girmelisin!" to player
else if arg 1 is "sil":
if arg 2 is set:
execute console command "mangdelp {@rutbeismi.1} %arg 2%"
execute console command "mangdelp {@rutbeismi.2} %arg 2%"
execute console command "mangdelp {@rutbeismi.3} %arg 2%"
send "&aBaşarıyla &f%arg-2% &ayetkisi silindi!" to player
else:
send "&cBir yetki girmelisin!" to player
else:
send "&cGirilen komut yanlış &7: &f( &aekle &7- &asil &f)" to player
else:
send "&cBunu yapmak için iznin bulunmamaktadır!" to player
Hata var ise bildiriniz.
PermissionsEX ve Groupmanager eklentisi getirilmiştir.
C#:
options:
rutbeismi.1 : acemi
rutbeismi.2 : uzman
rutbeismi.3 : kahraman
variables:
{groupmanager} = false # Groupmanager kullanıyorsan true yap.
{permissionsex} = false # PermissionsEX kullanıyorsan true yap.
command /rütbe [<Text>] [<Text>]:
trigger:
if player has permission "mainmup.groupmanager"
if arg 1 is "ekle":
if arg 2 is set:
if {groupmanager} is true:
execute console command "mangaddp {@rutbeismi.1} %arg 2%"
execute console command "mangaddp {@rutbeismi.2} %arg 2%"
execute console command "mangaddp {@rutbeismi.3} %arg 2%"
send "&aBaşarıyla &f%arg-2% &ayetkisi eklendi!" to player
if {permissionsex} is true:
execute console command "pex group {@rutbeismi.1} add %arg 2%"
execute console command "pex group {@rutbeismi.2} add %arg 2%"
execute console command "pex group {@rutbeismi.3} add %arg 2%"
else:
send "&cBir yetki girmelisin!" to player
else if arg 1 is "sil":
if arg 2 is set:
if {groupmanager} is true:
execute console command "mangdelp {@rutbeismi.1} %arg 2%"
execute console command "mangdelp {@rutbeismi.2} %arg 2%"
execute console command "mangdelp {@rutbeismi.3} %arg 2%"
send "&aBaşarıyla &f%arg-2% &ayetkisi silindi!" to player
if {permissionsex} is true:
execute console command "pex group {@rutbeismi.1} remove %arg 2%"
execute console command "pex group {@rutbeismi.2} remove %arg 2%"
execute console command "pex group {@rutbeismi.3} remove %arg 2%"
else:
send "&cBir yetki girmelisin!" to player
else:
send "&cGirilen komut yanlış &7: &f( &aekle &7- &asil &f)" to player
else:
send "&cBunu yapmak için iznin bulunmamaktadır!" to player
Son düzenleme: