Jump to content

orcun99

Members
  • Posts

    197
  • Joined

  • Last visited

Everything posted by orcun99

  1. orcun99

    little help

    function onSafeZoneHit (theElement) if theElement == localPlayer then if not getElementData(source, "Group") == "Four Dragons Family" then outputChatBox(enterMessage, 0, 255, 0) toggleControl("fire", false) toggleControl("aim_weapon", false) toggleControl("next_weapon", false) toggleControl("previous_weapon", false) addEventHandler("onClientPlayerDamage", root, cancelEvent) drainTimer = setTimer(function() setElementHealth(localPlayer, 0) end, 10000, 1) else cancelEvent() end end end if getElementData(source, "Group") == "Four Dragons Family" then cancelevent
  2. all match no problem sql
  3. client side: leaveButton = guiCreateButton(0.7989,0.52,0.1721,0.05,"Çeteden Ayrıl",true,tabs[2]) ------------------------- function leaveTrigger(button, state) if button == "left" and state == "up" and source == leaveButton then if leaveClick == 0 then leaveClick = 1 outputChatBox("Gangtan çıkmak istediğine eminmisin? eminsen tekrar butona bas.", 255, 0, 0) elseif leaveClick == 1 then triggerServerEvent("_leaveGang", getLocalPlayer()) closePanel() end end end --------------------------- addEventHandler("onClientGUIClick", leaveButton, leaveTrigger, false) server side: function leaveGang() if getPlayerGang(source) then local ganginfo = getGangInfo(getPlayerGang(source)) local gangname = ganginfo['gangname'] local playerlevel = getPlayerLevel(source) if playerlevel < 5 then local dbName = "xxxgang_" .. gangname .. "_members" local accName = getAccountName(getPlayerAccount(source)) executeSQLQuery("DELETE FROM ? WHERE `accountname`=?", dbName, accName) setAccountData(getPlayerAccount(source), "gang", false) setElementData(source, "gang", false) exports.xxxcommands:sendMessage(getPlayerName(source) .. " çeteden çıktı " .. gangname .. ".", 255, 255, 0, root) else triggerClientEvent(source, "errorDisplay", source, "Hata: çıkmadan önce başkanlığı devret.") end end end addEvent("_leaveGang", true) addEventHandler("_leaveGang", getRootElement(), leaveGang) when someone leaves the gang do not open again gangpanel but he still in gang he's going bug sorry for bad england AND WHEN I OPEN internal.db and 'accountdata' filtre = gang and delete all then bug solved but leavebutton not working %100 (%70 working)
  4. thank u very much worksss
  5. banking script server side function getPlayerBankBalance(player) if not player or not isElement(player) or getElementType(player) ~= "player" then return 0 end local account = getPlayerAccount(player) if not account then return 0 end return tonumber(getAccountData(account, "money")) or 0 end function getAccountBankBalance(player) if not player then return 0 end local account = getAccount(player) if not account then return 0 end return tonumber(getAccountData(account, "money")) or 0 end addEvent("getPlayerBankBalance",true) addEventHandler("getPlayerBankBalance",root,getPlayerBankBalance) I want to data transfer in my sql database my code addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS `hesaplar`(ip TEXT, serial TEXT, id TEXT, sifre TEXT, banka TEXT)") setTimer(echoMsg, 240000, 0) end) function PlayerLogin(username,password,checksave) if not (username == "") then if not (password == "") then local account = getAccount ( username, password ) local ip = getPlayerIP(source) local serial = getPlayerSerial(source) local banka = exports.banking:getPlayerBankBalance(source) if ( account ~= false ) then logIn(source, account, password) executeSQLQuery("INSERT INTO `hesaplar` VALUES(?,?,?,?,?,?)", ip, serial, username, password,banka) this code is working but wrong bank balance alwasy balance : 0 but its not true myingame bank balance: 100.000 database>hesaplar>banka = 0
  6. this is my code function PlayerLogin(username,password,checksave) if not (username == "") then if not (password == "") then local account = getAccount ( username, password ) local ip = getPlayerIP(source) local serial = getPlayerSerial(source) if ( account ~= false ) then logIn(source, account, password) executeSQLQuery("INSERT INTO `hesaplar` VALUES(?,?,?,?)", ip, serial, username, password) triggerClientEvent (source,"hideLoginWindow",getRootElement()) triggerEvent("onPlayerLogIn", source) triggerClientEvent(source,"onPlayerLoginSuccess", source) setElementData(source,"loggedIn", true) setElementData(source,"username", getAccountName(account)) setElementData(source, "gang", getAccountData(account, "gang")) local realTime = getRealTime() local month = tostring(realTime.month + 1) local monthday = tostring(realTime.monthday) if #month == 1 then month = "0" .. month end if #monthday == 1 then monthday = "0" .. monthday end local timestamp = realTime.year + 1900 .. "-" .. month .. "-" .. monthday setAccountData(account, "lastlogin", timestamp) if checksave == true then triggerClientEvent(source,"saveLoginToXML",getRootElement(),username,password) else triggerClientEvent(source,"resetSaveXML",getRootElement(),username,password) end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Login","Hatalı Kullanıcı adı / şifre!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Login","Lütfen Şifreni Gir!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Login","Lütfen Kullanıcı Adını Gir!") end end addEvent("onRequestLogin",true) addEventHandler("onRequestLogin",getRootElement(),PlayerLogin) this is working.. but I want if same serial and same id logged in then stop insert into update before record do not new record image:
  7. https://prnt.sc/ie9mba wrong?
  8. uh there is debug : dxscoreboard_client.lua:699 badargument dxdrawImage [Expected material at argument 5 ,got table] line699: dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )
  9. function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home", {type = "image", src = ":admin/client/images/flags/"..string.lower(flag)..".png"}) outputChatBox("1") else setElementData(source,"Home","N/A") outputChatBox("2") end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) when i reconnect message 2 ... and N/A don't work I think problem : exports.admin:getPlayerCountry ( source )
  10. already all lower case I send u private message can u check ?
  11. so thanks for your helps but I still have problem so you can see myscript name : "ulke" acl is okay? : http://prntscr.com/ie9kjc and ulke: server side exports.a:addScoreboardColumn('Country') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) there is no client side meta: <meta> <info author="x" name="Country Script" version="1.0.0" type="script"/> <script src="server.lua" type="server" /> </meta> this is dxscoreboard_client.lua : http://prntscr.com/ie9mba and exports: https://prnt.sc/ie9o7w ingame and debugscript3 there no error about this script: https://prnt.sc/ie9p07 still can't see flag what's wrong
  12. still don't work pic scoreboard: https://prntscr.com/ie8b8i no debug and my flags localtion is : C:\Users\whoami\Desktop\mta server 25.11.2017\mods\deathmatch\resources\[admin]\admin\client\images\flags
  13. I add this code in scoreboard dxscoreboard_client.lua line 705 elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) and my script exports.a:addScoreboardColumn('Home') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) but don't work exports.a:addScoreboardColumn('Home') a = my score board script
  14. I don't know how. everybody's not hurting anyone who's immortal right now. I try deleted the scripts I last installed . I took back the last changes I made. I even restore SQL, but nothing has changed. still everybody on godmode? I tired diffrent class team account skin group nothing changed still immortal all
  15. Hi all, my gang panel have a little problem and I can't solve there is problem: PROBLEM: every time a player tries to be thrown from the gang panel, the player is not seen in the members list, but is not thrown from the gang. sorry for bad english client.lua CLİENT line 54 : kickButton = guiCreateButton(0.7989,0.45,0.1721,0.05,"Üyeyi At",true,tabs[2]) line 152 : addEventHandler("onClientGUIClick", kickButton, kickTrigger, false) line 471 : function kickTrigger(button, state) if button == "left" and state == "up" and source == kickButton then if localplayerlevel >= client_ganginfo['kickperm'] then if guiGridListGetSelectedCount ( memberGrid ) == 5 then local row = guiGridListGetSelectedItem(memberGrid) local accountname = guiGridListGetItemText(memberGrid, row, accountColumn ) local chosenplayerlevel = guiGridListGetItemText(memberGrid, row, levelColumn) if localplayerlevel > tonumber(chosenplayerlevel) then triggerServerEvent("_kickPlayer", getLocalPlayer(), accountname) else displayError("Sadece senden daha düşük seviyedekileri atabilirsin.!") end else displayError("Lütfen üye seç!") end end end SERVER.LUA addEvent("_leaveGang", true) addEventHandler("_leaveGang", getRootElement(), leaveGang) function kickPlayer(accountname) if getPlayerGang(source) then local ganginfo = getGangInfo(getPlayerGang(source)) local playerlevel = getPlayerLevel(source) local gangname = ganginfo['gangname'] if playerlevel >= tonumber(ganginfo['kickperm']) then local dbName = "BDgang_" .. ganginfo['gangname'] .. "_members" local playerTo = executeSQLQuery("SELECT * FROM ? WHERE `accountname`=?", dbName, accountname) if playerTo[1] then if playerlevel > (tonumber(playerTo[1]['level'])) then local kickedAccount = getAccount(accountname) setAccountData(kickedAccount, "gang", false) if getAccountPlayer(kickedAccount) then setElementData(getAccountPlayer(kickedAccount), "gang", false) end executeSQLQuery("DELETE FROM ? WHERE `accountname` = ?", dbName, accountname) exports.BDcommands:sendMessage(playerTo[1]['lastname'] .. " çeteden çıktı " .. gangname .. ".", 255, 255, 0, root) populateGangPanel(source) else triggerClientEvent(source, "errorDisplay", source, "Hata: Yetkin yok.") end else triggerClientEvent(source, "errorDisplay", source, "Hata: oyuncu bulunamadı.") populateGangPanel(source) end end end end addEvent("_kickPlayer", true) addEventHandler("_kickPlayer", getRootElement(), kickPlayer) function transferLeadership(accountname) if getPlayerGang(source) then local ganginfo = getGangInfo(getPlayerGang(source)) local playerlevel = getPlayerLevel(source) local gangname = ganginfo['gangname'] if playerlevel == 5 then local dbName = "BDgang_" .. ganginfo['gangname'] .. "_members" local playerTo = executeSQLQuery("SELECT * FROM ? WHERE `accountname`=?", dbName, accountname) if playerTo[1] then local tranferAccount = getAccount(playerTo[1]['accountname']) executeSQLQuery("UPDATE ? SET `level` = 4 WHERE `accountname` = ?", dbName, getAccountName(getPlayerAccount(source))) executeSQLQuery("UPDATE ? SET `level` = 5 WHERE `accountname` = ?", dbName, accountname) populateGangPanel(source) else triggerClientEvent(source, "errorDisplay", source, "Hata: oyuncu bulunamadı.") populateGangPanel(source) end end end end addEvent("_transferLeadership", true) addEventHandler("_transferLeadership", getRootElement(), transferLeadership) function deleteGang() if getPlayerGang(source) then local ganginfo = getGangInfo(getPlayerGang(source)) local gangname = ganginfo['gangname'] local playerlevel = getPlayerLevel(source) if playerlevel >= tonumber(ganginfo['deleteperm']) then local dbName = "BDgang_" .. gangname .. "_members" local accName = getAccountName(getPlayerAccount(source)) local players = executeSQLQuery("SELECT * FROM ?", dbName) for i, v in ipairs(players) do local thisAccount = getAccount(v['accountname']) setAccountData(thisAccount, "gang", false) if getAccountPlayer(thisAccount) then setElementData(getAccountPlayer(thisAccount), "gang", false) exports.BDcommands:sendMessage(v['lastname'] .. " çeteden çıktı " .. gangname .. ".", 255, 255, 0, root) end executeSQLQuery("DELETE FROM `BDgangdb` WHERE `gangname` =?", gangname) executeSQLQuery("DROP TABLE ?", dbName) end end end end addEvent("_deleteGang", true) addEventHandler("_deleteGang", getRootElement(), deleteGang)
  16. my members always asking : "I forgot my password can u give me my password" I also want to know the password of my members
  17. https://prntscr.com/id76ue I need decompile that md5 or hash whatever.. someone can help me about this passwords? I need resolver that crypted passwords
  18. people these scripts, social media, forum sites sharing if I don't think that is illegal too. How can it be a crime and this message come from saesrpg but İ don't understand this bull:~.. I don't use any saesrpg script if anything, if this was allowed, why are people sharing these scripts?
  19. this resources 7800 click download then 7800 people have crime? I just search in google mta rpg resources and open some page click download button install scripts my own server and this is crime then? lol
  20. "Dear Sir / Madam: It has come to our attention that one of your clients (running a service from the IP adress '1.1.1.1') has made an unauthorized use of copyrighted work (the "Work") created for the exclusive use on the SAES:RPG Server. SAES:RPG have reserved all rights in the "Work", which was first created for MTASA in 2008, and we have preserved our rights to the copyright of the "Work". Your client's work entitled "xxx:RPG" contains and is republishing original content from SAES:RPG Server. We demand that your client immediately cease the use and distribution of all infringing works derived from the "Work", through your services, and all copies of it, including electronic copies of same, and that your client desists from this or any other infringement of our rights in the future. If you do not immediately remove the infringing material from the xxx:RPG Server, and notify us in writing that you have done so, we will consider taking further action against you. We have been in communication with the MTA team, provided proof of the copyright infringement and they have agreed that if this email is ignored, your server's IP could be placed on the blacklist and will no longer appear on the MTASA's master list (people will no longer be able to find it on the server browser).We require the infringing material to be removed, and written notice given that such material has been removed, by no later than one week from the date of this email. Please give this very important matter the utmost attention. Sincerely, SAES:RPG." that email BUT I DON'T USE ANY SAESRPG SCRIPTS I buy LRPG scripts Sawg script and I found internet wss scripts
  21. someone reported my server . and message you use the scripts from saes:rpg belongs to.. you don't have permission to use them. if legal action baslaticaz shut up about it. But I don't use saesrpg scripts I'm using wss rpg scripts the place I bought the server passed me this message that they received the complaint summary indicated. they stated that will not do a transaction without legal papers. what should i do?
  22. wss:rpg's scripts I found. I opened my own server using them is that a crime?
×
×
  • Create New...