Tommy.

Members
  • Content Count

    47
  • Joined

  • Last visited

Community Reputation

9 Neutral

2 Followers

About Tommy.

  • Rank
    Rat
  • Birthday 03/05/2001

Details

  • Gang
    INFINITY PLAY
  • Location
    Blumenau - Brazil
  • Occupation
    Developer/ Lua, Php, Html, Js, Css, Mysql
  • Interests
    Knowledge

Recent Profile Visitors

977 profile views
  1. Tommy.

    [PAGO] Scripter

    Boa tarde, Sou scripter e estou disponível, caso ainda precise de um, entre em contato comigo pelo o privado aqui do fórum.
  2. Tommy.

    Designers / Scripters

    Boa tarde, sou scripter caso precisa de alguma força só me chamar no pv aqui do fórum.
  3. Tommy.

    roleplay scripting

    what? lol
  4. Tommy.

    Link website with server login

    Bom eu fiz para o meu server www.inftplay.com se existe alguma maneira de vincular não sei te dizer mas eu fiz uma db propria com MySql.
  5. Tommy.

    crash

    I enter the server it simply crashes (it is not always) but it is quite frequent. error: Version = 1.5.6-release-14734.0.000 Time = Mon Nov 12 20:35:16 2018 Module = C:\Program Files (x86)\MTA San Andreas 1.5.debug\mta\game_sa.dll Code = 0xC0000005 Offset = 0x00055110 EAX=254A4B01 EBX=0028F31C ECX=254A4B08 EDX=0000007C ESI=0028F31C EDI=254A4B00 EBP=1F224330 ESP=0028F2E0 EIP=1F224338 FLG=00010212 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
  6. Tommy.

    [HELP] Why not working this script?

    Try this [client-side] function onClientClick(button, state) if button == "left" and state == "down" then for k, v in ipairs(fegyverek) do if isInBox(screenW * 0.5703, screenH * 0.2700+(elem * 49.5), screenW * 0.0656, screenH * 0.0269) then fegyver = k end end if isInBox(screenW * 0.5703, screenH * 0.2700+(elem * 49.5), screenW * 0.0656, screenH * 0.0269) then if fegyver == 3 then outputChatBox("asd") end end end end addEventHandler("onClientClick", root, onClientClick) function isInBox(xS,yS,wS,hS) local sx,sy = getCursorPosition () local fx,fy = guiGetScreenSize() cursorx,cursory = sx*fx,sy*fy if cursorx > xS and cursorx < xS + wS and cursory > yS and cursory < yS + hS then return true else return false end end EDIT: Not tested
  7. Tommy.

    [HELP] onClientCursorMove

    I did not get to see your problem, but when you need some help and you can solve your problem, do not edit topic in the same way that you needed help someone else will need
  8. Try this [server-side] local marker1 = createMarker(2219.662109375, -1155.7900390625, 1026.6960449219, "arrow", 2, 90,255,255,255) function teleport1(source) setElementInterior (source, 10, -978.90002441406,1053,1344.3000488281 ) setElementDimension (source, 40 ) end addEventHandler("onMarkerHit", marker1, teleport1) I did not test
  9. Tommy.

    ME AJUDEM ? É RAPIDO, BATE E VOLTA

    Opa, fiz aqui pra você (: client-side: local screenW,screenH = guiGetScreenSize() local resW, resH = 1366,768 local x, y = (screenW/resW), (screenH/resH) serverName = "Nome do Servidor" addEventHandler("onClientRender", root, function() local time = getRealTime() local day = time.monthday local month = time.month local year = time.year + 1900 dxDrawText(serverName.."\1-\1FPS: "..getElementData(getLocalPlayer(), "fps").."\n"..day.."/"..month.."/"..year.."\1-\1"..getTimeS(), x*1190, y*723, x*1360, y*757, tocolor(255, 254, 254, 150), x*1.00, "clear", "right", "center", false, false, false, true, false) end ) function getTimeS() local time = getRealTime() local hours = time.hour local minutes = time.minute local seconds = time.second if (hours >= 0 and hours < 10) then hours = "0"..time.hour end if (minutes >= 0 and minutes < 10) then minutes = "0"..time.minute end if (seconds >= 0 and seconds < 10) then seconds = "0"..time.second end return hours..":"..minutes..":"..seconds end local fps = false function getCurrentFPS() -- Setup the useful function return fps end local function updateFPS(msSinceLastFrame) -- FPS are the frames per second, so count the frames rendered per milisecond using frame delta time and then convert that to frames per second. fps = (1 / msSinceLastFrame) * 1000 end addEventHandler("onClientPreRender", root, updateFPS) local function getAverageFPSOfFPSArray(table) -- Average FPS = (FPS1 + FPS2 + ... + FPSX) / X local totalFPS = 0 for _, fps in pairs(table) do totalFPS = totalFPS + fps end return totalFPS / #table end local currentSecondFPS = {} local lastSecondTicks = getTickCount() local lastFiveSecondsFPS = {} local function smoothFPS() -- Do we have a FPS rate already? if not getCurrentFPS() then return end -- Insert current FPS into a table for reference table.insert(currentSecondFPS, getCurrentFPS()) -- If a second passed, get the average FPS using the table -- (We always have at least one frame rendered, so dividing by 0 it's not a problem) if getTickCount() - lastSecondTicks >= 1000 then local averageFPSPerSecond = getAverageFPSOfFPSArray(currentSecondFPS) -- Reset variables currentSecondFPS = {} lastSecondTicks = getTickCount() -- Update the table containing last five seconds FPS -- Also update the FPS limit accordingly table.insert(lastFiveSecondsFPS, averageFPSPerSecond) -- Silently discard too old average FPS if #lastFiveSecondsFPS == 6 then table.remove(lastFiveSecondsFPS, 1) end -- Get the average FPS of the average FPS of each of the last five seconds, and use the result as the frame limit setElementData(localPlayer, "fps", (math.ceil(getAverageFPSOfFPSArray(lastFiveSecondsFPS)))); -- Sets elementData "fps" end end addEventHandler("onClientHUDRender", root, smoothFPS)
  10. Tommy.

    [HELP] Hud script

    try this if isPlayerMapVisible () then return end not tested
  11. Thank so much <3
  12. Tommy.

    Please help

    local gPName = getPlayerName(getLocalPlayer()) dxDrawText(gPName.." text", screenW * 0.2291, screenH * 0.1966, screenW * 0.7716, screenH * 0.2552, tocolor(255, 255, 255, 255), 1.50, "bankgothic", "left", "top", false, false, false, true, false)
  13. Tommy.

    How to make this script?

    --SERVER-SIDE function getAccount() local acc = getAccountName(getPlayerAccount(source)) triggerClientEvent(source, "sendAcc", source, acc) end addEvent("getAcc", true) addEventHandler("getAcc", root, getAccount) ---------------------------------------------------------------------- --CLIENT-SIDE triggerServerEvent("getAcc", localPlayer) addEvent("sendAcc", true); addEventHandler("sendAcc", root, function(acc) account = acc or "N/A" end) EDIT: Not tested
  14. Tommy.

    Table..

    use: table.insert
  15. Tommy.

    [HELP] ACL Group Vehicles

    function enterVehicle (player, seat, jacked) local accName = getAccountName (getPlayerAccount (player) if not isObjectInACLGroup("user."..accName, aclGetGroup ( "Admin" )) and getElementModel(source) == 411 then --Edit Acl and Vehicle ID cancelEvent() outputChatBox ( "*You are not allowed to drive this vehicle.", player) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) EDIT: Not tested