Best-Killer

Members
  • Content Count

    494
  • Joined

  • Last visited

Community Reputation

10 Decent

3 Followers

About Best-Killer

  • Rank
    Hustler

Details

  • Gang
    SAEG:RPG

Recent Profile Visitors

1,072 profile views
  1. Best-Killer

    Coords

    Syntax bool triggerServerEvent ( string event, element theElement, [arguments...] ) ---------- triggerServerEvent( "Coords", getRootElement(),localPlayer, guiGetText(GUIEditor.edit[3]), guiGetText(GUIEditor.edit[2]), guiGetText(GUIEditor.edit[1]) )
  2. function test () outputChatBox ( "No hejka", source, 255, 255, 255, true ) end addEventHandler ( "onPlayerSpawn", getRootElement(), test ) or addEventHandler ( "onPlayerSpawn", getRootElement(), function() outputChatBox ( "No hejka", source, 255, 255, 255, true ) end ) 2 works fine
  3. Thx Work For me ^^ Thanx too bro
  4. Hello, how can I sort table date ! if we have in table 2017-01-21, 2017-01-22 and i draw them in dxtext for example .... it's will show like 2017-01-21 2017-01-22 i want it 2017-01-22 2017-01-21
  5. Client side function only works with the server the player is connected to it's means the featchremote only from server ip right ?? and if my server is localhost what should ip i use to make it work ??
  6. but i don't enderstand it ye it's catching table
  7. hello guys please an example of FetchRemote Client Side please (images remote ) i tried with that but it's not work addEventHandler("onClientResourceStart", resourceRoot, function() local f = fetchRemote("https://www.countries-ofthe-world.com/flags-normal/flag-of-Germany.png", function(data, err) if(err == 0) then local f = fileCreate(v[3]) fileWrite(f, data) fileClose(f) outputChatBox("Passed") else outputChatBox("error") end end, "", false) end)
  8. Hhhhh i like all your words all right hahahaha there is no errors in debug ^^ and thx (Sloved)
  9. usernames = {} function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) local accblock = accountBlocked(user) if ( account ~= false ) then if accblock == "0" then return end outputChatBox(accblock) if isTimer(cooldown) then return end cooldown = setTimer(function() end, 1000, 1) if (logIn ( client, account, pass ) == true) then triggerClientEvent ( client, "SAEGLogin:hideLogin", client ) setElementData(player,"AccountData:Username",tostring(user)) setElementData ( player, "AccountData:Serial", s ) setElementData ( player, "AccountData:IP", ip ) else triggerClientEvent ( client, "setWarning", client, "Something went wrong while logging!", 255, 0, 0 ) end else triggerClientEvent ( client, "setWarning", client, "Invalid login details!", 255, 0, 0 ) end end addEvent( "SAEGLogin:onLogin", true ) addEventHandler( "SAEGLogin:onLogin", root, onLogin ) function accountBlocked(acc) accblocked = false query = exports.NGsql:db_query ( "SELECT * FROM accountdata WHERE Username=? LIMIT 1", tostring(acc)) for i, v in ipairs (query) do accblocked = v["Blocked"] end if not accblocked then return false end return accblocked end what's worng with my code guys ?? pff the player can login if the account is blocked
  10. already i use that in the scoreboard but you didn't understand bro :v if is there 1 play vip in game all players will be vip in scoreboard and see function test (p,cmd) isPlayerVIP(p) end addCommandHandler("aa",test) i'm testing for see it when fixed
  11. another code : function test (p,cmd) isPlayerVIP(p) end addCommandHandler("aa",test) function isPlayerVIP(p) local acc = getAccountName ( getPlayerAccount ( p ) ) query = exports.NGsql:db_query ( "SELECT * FROM vips_data WHERE acc=? ", tostring(getPlayerID(getIDAccount(acc)))) if ( type ( query ) ~= "table" or #query < 1 ) then return outputChatBox("None") else return outputChatBox(tostring(query[1]["level"])) end end what i got with that ?? if no one is vip ig then when player type /aa and he's not vip will get None and when is there Player Vip ig then other player type aa (and he's not Vip) he will get vip level of the other player in the chat pfffffff what i want ?? if the player used /aa and he's not vip he get None and if he's vip player he get his level in the chat
  12. Best-Killer

    Check Vip

    function test (p,cmd) isPlayerVIP(p) outputChatBox(tostring(isPlayerVIP(p))) end addCommandHandler("aa",test) function isPlayerVIP(p) query = exports.NGsql:db_query ( "SELECT * FROM vips_data WHERE acc=? ", tostring(getPlayerID(getIDAccount(acc)))) for _, vip in ipairs(query) do return tostring(vip["level"]) end return "None" end if there player have vip all players will be have vip what is the problem pff
  13. use this better function cursorPosition(x, y, w, h) if (not isCursorShowing()) then return false end local mx, my = getCursorPosition() local fullx, fully = guiGetScreenSize() cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end
  14. Best-Killer

    Set Timer

    this the first time i hear that