Mert#4420
# By Coder is giresun28 (Sikiript my life .d)
options:
sure: 5 minutes
cevaplamasuresi: 20
odul: 2500
function kelimeoyunu(sayfa: String):
if {_sayfa} is "baslat":
if {kelimeoyunu} is not set:
if {oyunturu} is not set:
set {oyunturu} to "normal"
if {oyunturu} is "normal":
add "Orman" and "Hayvan" and "Ev" and "Balta" and "Miraba" and "Araba" and "Uzman" and "Asker" and "Dost" and "Anne" and "Baba" and "Abi" and "Abla" and "Corona" and "Gitti" and "Geldi" and "Hava" and "Odun" and "Tahta" and "Blok" and "Su" to {_kelimeler::*}
set {_kelime} to random element out of {_kelimeler::*}
broadcast "&7&m------------------------------------"
broadcast ""
broadcast "&7&l» &eKelime Oyunu Başladı!"
broadcast "&7&l» &eSohbete ilk &a%{_kelime}% &eyazan kazanır."
broadcast ""
broadcast "&7&m------------------------------------"
set {kelimeoyunu::cevap} to "%{_kelime}%"
set {kelimeoyunu::sure} to now
set {kelimeoyunu} to true
loop {@cevaplamasuresi} times:
wait 1 seconds
if {kelimeoyunu} is set:
else:
stop
delete {kelimeoyunu}
broadcast "&7&m------------------------------------"
broadcast ""
broadcast "&7&l» &eKelime Oyununu kazanan olmadı!"
broadcast ""
broadcast "&7&m------------------------------------"
on chat:
if {kelimeoyunu} is true:
if "%message%" is "%{kelimeoyunu::cevap}%":
cancel event
set {_sure} to difference between {kelimeoyunu::sure} and now
delete {kelimeoyunu}
set {_sure} to "%{_sure}%"
replace all "seconds" with "" in {_sure}
replace all "second" with "" in {_sure}
replace all " " with " " in {_sure}
broadcast "&7&m------------------------------------"
broadcast ""
broadcast "&7&l» &6%player%, &a%{_sure}% &7saniyede &e%{kelimeoyunu::cevap}%"
broadcast "&7&l» &7yazarak Kelime Oyununu kazandı!"
broadcast ""
broadcast "&7&m------------------------------------"
add {@odul} to player's balance
every {@sure}:
delete {kelimeoyunu}
kelimeoyunu("baslat")
command /kelimebaslat:
permission: kelimebaslat.admin
trigger:
delete {kelimeoyunu}
kelimeoyunu("baslat")
WhuryBaris#0001
o zaman skripte bu kodu eklemelisin ödül kısmına execute console command "give %player% iteminismi"Ben ödül olarak item vermesini istiyorum onu nasıl yaparım
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!