[Yardım] Kod

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı furkan08

  • Yeni Üye
  • *
    • İleti: 75
: 13 Ağustos 2020, 16:48:12
Alta Verdigim Kodda Birşey Denemeye Calışıyorum   mesela ac/ komutunu yazınca acılıcak Tekrar ac/ Dersem Kapanacak Bunu Nasıl Yapabilirim

Kod
function test  ( thePlayer )

 exports.GTIhud:drawProgressBar("test ", "deneme Kapanıyor",thePlayer , 177, 0, 0,10*1000)

 end
addCommandHandler ( "ac", test )

sorun çözüldü konu çöp olabilir
« Son Düzenleme: 13 Ağustos 2020, 17:10:50 Gönderen: furkan08 »
 


MTASATURK

[Yardım] Kod
« : 13 Ağustos 2020, 16:48:12 »

Çevrimdışı kedibakgit

  • Yeni Üye
  • *
    • İleti: 47
  • .
Yanıtla #1 : 13 Ağustos 2020, 20:54:37
Kod
state = false

addCommandHandler('ac', function(parametre)
    if state then
        --kodlar
        state = not state
    else
        --kodlar
        state = not state
    end
end)
 


Çevrimdışı MertA178

  • Oh,shit! What is these cringes? These are LUA codes bro! LUA is a terrible scripting language.
  • Deneyimli Üye
  • *
    • İleti: 381
Yanıtla #2 : 14 Ağustos 2020, 02:33:25
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod
state = false

addCommandHandler('ac', function(parametre)
    if state then
        --kodlar
        state = not state
    else
        --kodlar
        state = not state
    end
end)
sorun çözüldü konu çöp olabilir
« Son Düzenleme: Dün, 17:10:50 Gönderen: furkan08 »