- Katılım
- 15 May 2013
- Konular
- 1,209
- Mesajlar
- 7,333
- Çözüm
- 6
- Online süresi
- 2mo 16d
- Reaksiyon Skoru
- 5,974
- Altın Konu
- 410
- Başarım Puanı
- 349
- MmoLira
- 2,031
- DevLira
- 6
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
RedM projelerine eğlenceli mini oyunlar eklemek isteyen geliştiriciler için bu betik harika bir seçenektir. Taş kağıt makas, kilit açma ve beceri kontrolleri gibi API tabanlı oyunların bir koleksiyonunu içerir ve bunlar RedM projenize kolayca entegre edilebilir. Bu mini oyunlar projenize fazladan bir etkileşim ve eğlence katmanı ekleyebilir ve kullanıcılarınızın yeni ve heyecan verici şekillerde etkileşim kurmasına yardımcı olabilir. Deneyin ve geliştirme sürecinizi nasıl iyileştirebileceğini görün!
Özellikler
- Taş kağıt makas
- Kilit açma
- beceri kontrolü
Kurulum
- En son sürümü bcc-minigames.zipşu adresten indirin
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
- Çıkarın ve klasörünüze minigamesyerleştirinresources
- ensure minigamesDosyanıza ekleyinserver.cfg
- Sunucunuzu yeniden başlatın (her gece yeniden başlatma yapmadığınız sürece)
API Belgeleri
Kilit açma
Kod:
local MiniGame = exports['bcc-minigames'].initiate()
RegisterCommand('playgame', function(args, rawCommand)
local cfg = {
focus = true, -- Should minigame take nui focus
cursor = true, -- Should minigame have cursor (required for lockpick)
maxattempts = 3, -- How many fail attempts are allowed before game over
threshold = 10, -- +- threshold to the stage degree (bigger number means easier)
hintdelay = 500, --milliseconds delay on when the circle will shake to show lockpick is in the right position.
stages = {
{
deg = 25 -- 0-360 degrees
},
{
deg = 0 -- 0-360 degrees
},
{
deg = 300 -- 0-360 degrees
}
}
}
MiniGame.start('lockpick', cfg, function(result)
print("Unlocked?", result.unlocked) -- true/false
end)
end)
Beceri Kontrolü
Kod:
local MiniGame = exports['bcc-minigames'].initiate()
RegisterCommand('playgame', function(args, rawCommand)
local cfg = {
focus = true, -- Should minigame take nui focus (required)
cursor = false, -- Should minigame have cursor
maxattempts = 3, -- How many fail attempts are allowed before game over
type = 'bar', -- What should the bar look like. (bar, trailing)
userandomkey = true, -- Should the minigame generate a random key to press?
keytopress = 'B', -- userandomkey must be false for this to work. Static key to press
keycode = 66, -- The JS keycode for the keytopress
speed = 20, -- How fast the orbiter grows
strict = false -- if true, letting the timer run out counts as a failed attempt
}
MiniGame.start('skillcheck', cfg, function(result)
print("Passed?", result.passed) -- true/false
end)
end)
Taş Kağıt Makas
Kod:
local MiniGame = exports['bcc-minigames'].initiate()
RegisterCommand('playgame', function(args, rawCommand)
local cfg = {
focus = true, -- Should minigame take nui focus
cursor = true, -- Should minigame have cursor (required)
allowretry = false --Allows use to start the minigame over.
}
MiniGame.start('rps', cfg, function(result)
print("Result?", result.result) -- win, lose, tie
end)
end)
Son düzenleme:













