0 Üye ve 1 Ziyaretçi konuyu incelemekte.
button = guiCreateButton(125, 252, 251, 222,"Buttonum", true)
myFuckingButton = guiCreateButton(0,0,0,0,"click lan click",false)function myFuckingFunction() if not (getElementData(source,"clikced") then setElementData(myFuckingFunction,"clicked",true) setTimer(outputChatBox,1000,1,"fako beri bak beri") endendaddEventHandler("onClientGUIClick",myFuckingButton,myFuckingFunction)
local kullanimhakki;local timerbutton;local surekontrol;local sureolustur;local mesaj;local zaman;local tekrar;local serverSideEvent;local clienteventfunc;sureolustur = setTimer;surekontrol = isTimer;mesaj = outputChatBox;zaman = 1 * 500tekrar = 1kullanimhakki = 1;timerbutton = function()if ( source == button and not surekontrol(zamanlayici) and kullanimhakki == 1 and tonumber(zaman)) thensetTimer(function()kullanimhakki = 0;mesaj("Kullanım hakkınız dolmuştur",255,0,0,true)serverSideEvent(getLocalPlayer(),getLocalPlayer(),kullanimhakki) end, zaman, tekrar)end endaddEventHandler("onClientGUIClick",root,timerbutton)serverSideEvent = function(element,element2,element3)triggerServerEvent("kullanimhakki_kullanici", element, element2,element3 ) endclienteventfunc = function(element)kullanimhakki = tonumber(element)endaddEvent("kullanimhakki_kullanici_client",true)addEventHandler("kullanimhakki_kullanici_client",root,clienteventfunc)
local kullanimhaki_user;local kullanimhaki_user_log;local uyelik;local veri_adi;local kkdata;local clientSideEvent;veri_adi = "kalanhakki"kullanimhaki_user = function(element,element2)if ( element ) thenuyelik = getPlayerAccount(element)setAccountData(uyelik,veri_adi, element2 ) print("kullanıcı kullanım hakkı kayıt edildi.")endendaddEvent("kullanimhakki_kullanici",true)addEventHandler("kullanimhakki_kullanici",root,kullanimhaki_user)kullanimhaki_user_log = function(element,element2) uyelik = getAccountName ( element2 ) if ( uyelik ) then kkdata = getAccountData(element2, veri_adi ) clientSideEvent( source, kkdata or 0 ) print("kullanıcı kullanım hakkı yüklendi.")end endaddEventHandler("onPlayerLogin",root,kullanimhaki_user_log)clientSideEvent = function(element,element2)triggerClientEvent(element,"kullanimhakki_kullanici_client", element, element2 ) end