orcun99

Members
  • Content count

    150
  • Joined

  • Last visited

Community Reputation

3 Neutral

About orcun99

  • Rank
    Busta
  • Birthday 02/06/1999

Details

  • Gang
    BlackDragon:RPG
  • Location
    Turkey
  • Occupation
    Scripter :D

Recent Profile Visitors

348 profile views
  1. localtion problem

    I think you don't understand for example lvcol = createColCircle ( 1796.6412353516,1740.2864990234, 1250 ) function qwe(thePlayer) outputChatBox("you can't use /pvp cause you in lv.") end addEventHandler( "onColShapeHit", lvcol, qwe ) function qwe2 (thePlayer) outputChatBox("ayrıldın") local rnd = math.random( 1, #spawns ) setElementPosition( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3] ) end addEventHandler ( "onColShapeLeave", root, qwe2 ) addCommandHandler("pvp",qwe2) solved thanks all
  2. localtion problem

    local spawns = { { 1936.1899414063, 1622.6533203125, 72.2578125, 90 }, --1 { 2155.63671875, 1483.9974365234, 24.140625, 90}, --2 { 2023.1564941406, 1436.7003173828, 10.8203125, 90 }, --3 { 2121.4245605469, 1484.5670166016, 10.8203125, 90 }, --4 { 2170.0751953125, 1679.1960449219, 10.8203125, 90 }, --5 { 2095.324218755, 1282.2322998047, 10.8203125, 90 }, --6 } function spawn( player ) local rnd = math.random( 1, #spawns ) setElementPosition( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3] ) end addCommandHandler("pvp",spawn) if the player is in the field that I set as spawns, I want the player to be unable to use the /PvP command again. I Want This command not to be used in Las venturas.
  3. little help

    works <3
  4. 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
  5. gang panel problem

    all match no problem sql
  6. gang panel problem

    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)
  7. bankbalance sql

    thank u very much worksss
  8. bankbalance sql

    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
  9. executeSQLQuery

    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:
  10. scoreboard flag

    https://prnt.sc/ie9mba wrong?
  11. scoreboard flag

    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 )
  12. scoreboard flag

    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 )
  13. scoreboard flag

    already all lower case I send u private message can u check ?
  14. scoreboard flag

    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
  15. scoreboard flag

    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