Jump to content

spoty

Members
  • Posts

    334
  • Joined

  • Last visited

Everything posted by spoty

  1. nope i have chacked the server log and this is what i found [2014-08-09 21:54:15] Resource 'flash' changed, reloading [2014-08-09 21:54:15] New resource 'flash' loaded [2014-08-09 21:54:15] Resources: 344 loaded, 0 failed [2014-08-09 21:54:15] Upgrade completed. [2014-08-09 21:55:09] CHAT: * Remolit eats popcorn [2014-08-09 21:55:14] start: Requested by Mr.Spoty(spoty) [2014-08-09 21:55:14] Starting flash [2014-08-09 21:55:20] stop: Requested by Console [2014-08-09 21:55:20] stop: Resource stopping [2014-08-09 21:55:20] Stopping flash [2014-08-09 21:55:26] QUIT: Remolit left the game [Timed out] [2014-08-09 21:55:29] QUIT: Chevy left the game [Timed out] [2014-08-09 21:55:29] QUIT: Mr.Spoty left the game [Timed out]
  2. none it just say in console cmd that it succesfully started and then 2 sec later evry body get timed out
  3. spoty

    [help]costum map

    okay that was all i needed to know thnx
  4. spoty

    [help]costum map

    i know how to do that but dosnt it matter with what kinda item id i replace it ?
  5. spoty

    [help]costum map

    anybody help me please i cant figure it out please help!!!
  6. hello i need some help with costum maps i have all the txd dff and col files but now i need to make a replace script for it and i was wondering how to find out with wich id i need to rplace all the col dff and txd ? if anybody could explain me how to find out on wich item ids i need to replace them would be verry helpfull!!
  7. spoty

    fixed at my own

    it cant run beqause it dont have a serverside script i cant figure it out how i can make a server side script for this
  8. spoty

    drift script

    how? you wanne have it away or just have it on a other place ?
  9. spoty

    drift script

    here i understand what you mean here take this and its away --these are the banned vehicle ids where you cannot get drift points. local BannedIDs = { 432, 532 } local rootElem = getRootElement() local thisRoot = getResourceRootElement(getThisResource()) local player = getLocalPlayer() local vehicle local size = 1.2 local modo = 0.01 local score = 0 local screenScore = 0 local tick local idleTime local multTime local driftTime local Yellow = tocolor(255,232,25) local Red = tocolor(234,0,3) local TempCol = Yellow local mult = 1 local tablamult = {350,1400,4200,11200} local anterior = 0 local mejor = 0 local total = 0 local global_mejor = 0 local global_nombre = "N/A" local screenWidth, screenHeight = guiGetScreenSize() local x1,y1,x2,y2 = screenWidth*0.2,screenHeight*0.1,screenWidth*0.8,screenHeight*0.8 addEventHandler("onClientResourceStart", thisRoot, function() addEventHandler("onClientRender", rootElem, showText) outputChatBox("Waiting for server drift data...") triggerServerEvent("driftClienteListo", rootElem, player) end ) addEventHandler("onClientResourceStop", thisRoot, function() removeEventHandler("onClientRender", rootElem, showText) end ) function isValidVehicle() local temp = getPedOccupiedVehicle(player) if not temp or getVehicleOccupant(temp,0) ~= player or getVehicleType(temp) ~= "Automobile" then return false end local vehID = getElementModel(temp) for k,v in ipairs(BannedIDs) do if vehID == v then return false end end return temp end function showText() dxDrawText(string.format("Best Drift: %s - %d",global_nombre,global_mejor),44,screenHeight-43,screenWidth,screenHeight,Yellow,1,"pricedown") vehicle = isValidVehicle() if not vehicle then return end if size > 1.3 then modo = -0.01 elseif size < 1.2 then modo = 0.01 end size = size + modo tick = getTickCount() local angulo,velocidad = angle() local tempBool = tick - (idleTime or 0) < 750 if not tempBool and score ~= 0 then anterior = score setElementData(player, "Last Drift", anterior) total = total+anterior setElementData(player, "Total Drift", total) if score > mejor then mejor = score setElementData(player, "Best Drift", mejor) end triggerEvent("onVehicleDriftEnd", rootElem, tick-driftTime-750) score = 0 end if angulo ~= 0 then if score == 0 then triggerEvent("onVehicleDriftStart", rootElem) driftTime = tick end if tempBool then score = score + math.floor(angulo*velocidad)*mult else score = math.floor(angulo*velocidad)*mult end if TempCol == Red then TempCol = Yellow end screenScore = score idleTime = tick end if tick - (idleTime or 0) < 3000 then local temp = "DRIFT" if score >= 100000 then temp = "DRIFT\n\nDrift King!" elseif score >= 50000 then temp = "DRIFT\n\nInsane Drift!" elseif score >= 20000 then temp = "DRIFT\n\nOutrageous!" elseif score >= 15000 then temp = "DRIFT\n\nColossal!" elseif score >= 7000 then temp = "DRIFT\n\nSuberb!" elseif score >= 3000 then temp = "DRIFT\n\nGreat Drift!" elseif score >= 1000 then temp = "DRIFT\n\nGood Drift!" end dxDrawText(temp, x1,y1,x2,y2, TempCol, 2.2, "sans","center","top", false,true,false) dxDrawText(string.format("\n%d",screenScore), x1,y1-10,x2,y2, TempCol, size, "pricedown","center","top", false,true,false) end end function angle() local vx,vy,vz = getElementVelocity(vehicle) local modV = math.sqrt(vx*vx + vy*vy) if not isVehicleOnGround(vehicle) then return 0,modV end local rx,ry,rz = getElementRotation(vehicle) local sn,cs = -math.sin(math.rad(rz)), math.cos(math.rad(rz)) local deltaT = tick - (multTime or 0) if mult~= 1 and modV <= 0.3 and deltaT > 750 then mult = mult-1 multTime = tick elseif deltaT > 1500 then local temp = 1 if score >= 11200 then temp = 5 elseif score >= 4200 then temp = 4 elseif score >= 1400 then temp = 3 elseif score >= 350 then temp = 2 end if temp>mult then mult = temp multTime = tick end end if modV <= 0.2 then return 0,modV end --speed over 40 km/h local cosX = (sn*vx + cs*vy)/modV if cosX > 0.966 or cosX < 0 then return 0,modV end --angle between 15 and 90 degrees return math.deg(math.acos(cosX))*0.5, modV end addEvent("driftCarCrashed", true) addEventHandler("driftCarCrashed", rootElem, function() if score ~= 0 then score = 0 mult = 1 TempCol = Red triggerEvent("onVehicleDriftEnd", rootElem, 0) end end ) addEvent("driftActualizarRecord", true) addEventHandler("driftActualizarRecord", rootElem, function(score, name) global_mejor = score global_nombre = name end ) function resetScore() anterior,mejor,total = 0,0,0 setElementData(player, "Last Drift", anterior) setElementData(player, "Total Drift", total) setElementData(player, "Best Drift", mejor) end addEvent("driftResetAllScores", true) addEventHandler("driftResetAllScores", rootElem, resetScore) addCommandHandler("resetdrift", resetScore) function checkPuntaje() if total > global_mejor then triggerServerEvent("driftNuevoRecord", rootElem, total, getPlayerName(player)) end end addEventHandler("onClientPlayerFinish", rootElem, checkPuntaje) addEventHandler("onClientPlayerOutOfTime", rootElem, checkPuntaje)
  10. hello i found some drift score resources but they dont save the score's and i dont know how to make a databse for it so i am requesting a drift score resource with a database that save's the score's please it would be verry helpfull if someone could help me with find one
  11. spoty

    [HELP]3D radio

    hello i have downloaded 3d speaker script but i wanne edit it like it attatch to bone is there a way to do this?
  12. you can make a static ip adress just search on google and if you have static ip adres it wont change anymoore
  13. okay i checked all and its fine i waited 48 Hours and still not on server list in mtasarver.conf you have 1 [ 0 = off 1 = on ] so i realy dont know whats going wrong all ports are open 22003 22005 22126 are open
  14. here this is what you need Meta Client Side imgW = 500 imgH = 90 function adminLogo() local players = getPlayersInTeam(getTeamFromName("Admin")) for i,player in ipairs(players) do if player ~= localPlayer then local cX, cY, cZ = getCameraMatrix() local hX, hY, hZ = getPedBonePosition(player, hZ = hZ + 0.5 local pX,pY,pZ = getPedBonePosition(localPlayer, pZ = pZ + 0.5 if getScreenFromWorldPosition(hX, hY, hZ) and isLineOfSightClear(cX,cY,cZ, pX,pY,pZ) then local sX, sY, sD = getScreenFromWorldPosition(hX, hY, hZ) local relative = (50 - sD) / 50 if relative > 0 then local iW = imgW * relative local iH = imgH * relative local iX = sX - (iW / 2) local iY = sY - (iH / 2) dxDrawImage(iX, iY, iW, iH, "admin.png") end end end end end addEventHandler("onClientRender", root, adminLogo)
  15. spoty

    FPS Cap

    you can change it in admin panel > Settings there you see FPS max = 100 if you needed to know
  16. yes but i mean like players dont wanne wait that long 1 time and if you have 1 time small download then thay are happy and wanne keep coming back and invite players and yes thats what i mean
  17. hi there me again i have a question on my server i have right now like 260 mb to download but i was wondering if i can make it lower like it just loads the script's but dont download if thats possible it would be amasing if it can and another question i know you can make vehicles disabble and can spawn only by panel but is there also a way to make cars and skins connect to a ACL group? so yes how can i do that
  18. spoty

    [HELP]Database

    okay i will wiki it and thnx for your help your a legit man for me
  19. spoty

    [HELP]Database

    yes and sorry if i look like a noob but i never have worked before with database's
  20. spoty

    [HELP]Database

    or do i need to make the file to .db?
  21. spoty

    [HELP]Database

    thats the database i try to make for save the drift points but i pretty fail hard i runned it now as client side and it is working now only it dont save / load the points
  22. spoty

    [HELP]Database

    "NL|Spoty" version="1.0.0" type="script"/> i give it a try to test it on client side
×
×
  • Create New...