ImInfiniTy
Şimdi bir Hardcore server olacaktı..
- Katılım
- 18 Şubat 2015
- Mesajlar
- 327
- Elmaslar
- 90
- Puan
- 13.710
- Yaş
- 25
SydeFQ#1938
on death of zombie:
attacker is player:
if {zombie.%player%} is bigger than or equal to 100:
remove 100 from {zombie.%player%}
add 1 to {zombie.%player%}
execute console command "manuadd %player% falanfilanranki"
else:
add 1 to {zombie.%player%}
Hocam denemek için kodu şu şekilde değiştirdim:denemedim hata çıkarsa belirtiniz.Kod:on death of zombie: attacker is player: if {zombie.%player%} is bigger than or equal to 100: remove 100 from {zombie.%player%} add 1 to {zombie.%player%} execute console command "manuadd %player% falanfilanranki" else: add 1 to {zombie.%player%}
SydeFQ#1938
Özür dilerim büyük bir hata yapmışım dalgınlığımdan olsa gerek. BuyurunHocam denemek için kodu şu şekilde değiştirdim:
on death of zombie:
attacker is player:
if {zombie.%player%} is bigger than or equal to 3:
remove 3 from {zombie.%player%}
add 1 to {zombie.%player%}
execute console command "manuadd %player% owner"
else:
add 1 to {zombie.%player%}
ve 3 zombi öldürdüğümde beni "owner" grubuna atmadı. /sk reload rutbe yazdığımda da bir hata vermiyor.
ben mi bir yerde yanlışlık yaptım yoksa skriptte mi hata var?
on death of zombie:
attacker is player:
if {zombie.%attacker%} is bigger than or equal to 1:
remove 1 from {zombie.%attacker%}
add 1 to {zombie.%attacker%}
execute console command "manuadd %attacker% falanfilanranki"
else:
add 1 to {zombie.%attacker%}
Hocam yine olmadı :/Özür dilerim büyük bir hata yapmışım dalgınlığımdan olsa gerek. Buyurun
Kod:on death of zombie: attacker is player: if {zombie.%attacker%} is bigger than or equal to 1: remove 1 from {zombie.%attacker%} add 1 to {zombie.%attacker%} execute console command "manuadd %attacker% falanfilanranki" else: add 1 to {zombie.%attacker%}
SydeFQ#1938
Bu remove 1 ila değil 100 ile değiştiriniz ben deneme olsun diye yaptım onu.Hocam yine olmadı :/
Skript bilmem ama anladığım kadarıyla;
bir zombi öldüğünde katil bir player ise:
zombie.%attacker% adlı sayaç 1'e eşit veya 1'den büyük ise
zombie.%attacker% sayacından 1 siliniyor,
zombie.%attacker% sayacına 1 ekleniyor,
oyuncu falanfilanranki grubuna aktarılıyor.
değilse:
zombie.%attacker% sayarına 1 ekleniyor.
Şimdi anlamadığım şey şu: hem remove 1 from {zombie.%attacker%}, hem de add 1 to {zombie.%attacker%} kullanmışsınız bu doğru mu bilmiyorum :D
2. olarak ta remove kullanırken remove 1 "from", add kullanırken add 1 "to" kullanmışsınız.
Bunlardan birisi mi yanlış acaba?
Skript bilmediğim için kesin bişey de söyleyemiyorum :D
on death of zombie:
attacker is player:
if {zombie.%attacker%} is bigger than or equal to 100:
remove 100 from {zombie.%attacker%}
add 1 to {zombie.%attacker%}
execute console command "manuadd %attacker% falanfilanranki"
else:
add 1 to {zombie.%attacker%}
Malesef hocam olmuyor :/Bu remove 1 ila değil 100 ile değiştiriniz ben deneme olsun diye yaptım onu.
Kod:on death of zombie: attacker is player: if {zombie.%attacker%} is bigger than or equal to 100: remove 100 from {zombie.%attacker%} add 1 to {zombie.%attacker%} execute console command "manuadd %attacker% falanfilanranki" else: add 1 to {zombie.%attacker%}
SydeFQ#1938
Bir dakika kendim deneyip atıyorum.Malesef hocam olmuyor :/
on death of zombie:
attacker is player:
if {zombie.%player%} bigger than to equal to "99":
remove 100 from {zombie.%player%}
add 1 to {zombie.rank.%player%}
execut console command "manuadd %player% rank"
else:
add 10 to {zombie.%player%}
SydeFQ#1938
Zaten üstteki skriptlerde bigger than or equal to içeriyor -.-kardeşim bigger than : komutunu kullanırsanız anca 100 olsa bile 101 de rütbe atlar o yüzden şöyle olmalıydı
Kod:on death of zombie: attacker is player: if {zombie.%player%} bigger than to equal to "99": remove 100 from {zombie.%player%} add 1 to {zombie.rank.%player%} execut console command "manuadd %player% rank" else: add 10 to {zombie.%player%}
Kardeş tmm bu tür skriptleri yazdım bigger than equal geçmesi önemli değil önemli olan skriptte rütbeyi ne zaman atlamasını tanımlamak :)Zaten üstteki skriptlerde bigger than or equal to içeriyor -.-
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!