xShocKz Posted January 6, 2012 Share Posted January 6, 2012 Allora questo script l'ho trovato cazzeggiando per i forums, è il car fade ma solo il ''client'', ecco ora cerco chi mi fa il ''server'' e magari il meta :3 l'unico possibile qui è hunterics quindi muovi il culo e aiutami me = getLocalPlayer() raceState = "" function carFade() local my_vehicle = getPedOccupiedVehicle(me) if not my_vehicle then return end local vx, vy, vz = getElementPosition ( my_vehicle ) local CubeA = {} for id, vehicle in ipairs ( getElementsByType("vehicle") ) do if getVehicleOccupant(vehicle) and vehicle ~= my_vehicle and not isElementCollidableWith(my_vehicle, vehicle) and raceState == "Running" then local x,y,z = getElementPosition(vehicle) local dist = getDistanceBetweenPoints3D( vx, vy, vz, x, y, z) if not getElementData(vehicle, "carfade") then setElementData(vehicle, "carfade", 1, false ) end if dist <= 50 then local minx, miny, minz, maxx, maxy, maxz = getElementBoundingBox ( my_vehicle ) local a = maxx - minx local b = maxy - miny local c = maxz - minz local radius1 = math.sqrt( a^2 + b^2 + c^2 ) minx, miny, minz, maxx, maxy, maxz = getElementBoundingBox ( vehicle ) a = maxx - minx b = maxy - miny c = maxz - minz local radius2 = math.sqrt( a^2 + b^2 + c^2 ) local radius = (radius1 + radius2 ) / 1.2 if dist < radius then setElementData(vehicle, "carfade", math.max(0, getElementData(vehicle, "carfade") - 0.1), false ) else setElementData(vehicle, "carfade", math.min (1, getElementData(vehicle, "carfade") + 0.1) , false ) end else setElementData(vehicle, "carfade", math.min (1, getElementData(vehicle, "carfade") + 0.1) , false ) end setElementAlpha(vehicle, getElementData(vehicle, "carfade") * 245 + 10) setElementAlpha(getVehicleOccupant(vehicle), getElementData(vehicle, "carfade") * 245 + 10) end end end carFadeOn = false bindKey("F4", "down", function() if carFadeOn then outputChatBox("Carfade disabled") removeEventHandler( "onClientRender", root, carFade ) else addEventHandler( "onClientRender", root, carFade ) outputChatBox("Carfade enabled") end carFadeOn = not carFadeOn end ) addEvent("onClientRaceStateChanging", true) addEventHandler("onClientRaceStateChanging", root, function(newstate) raceState = newstate end ) Link to comment
HunT Posted January 6, 2012 Share Posted January 6, 2012 Sei un folle . . .come posso creare un file server side dal nulla? Non so cosa sia questo e non voglio aiutarti su file che hai preso nella cartella client. Ti aiuto solo su progetti tuoi shok Link to comment
xShocKz Posted January 6, 2012 Author Share Posted January 6, 2012 da un occhiata a questo allora, manca il meta... me l'ha passato un amico http://www.mediafire.com/?1rg9xr1evrwl1db Link to comment
HunT Posted January 6, 2012 Share Posted January 6, 2012 i file sono compilati . . .ovvero criptati apri un meta qualsiasi e copialo,di sicuro sono entrambi client quindi script src type client Link to comment
xShocKz Posted January 6, 2012 Author Share Posted January 6, 2012 ah ok quindi non mi rimane che trovare chi scambia mappe per carfade... Link to comment
Paper Posted January 8, 2012 Share Posted January 8, 2012 Oppure ti conviene imparare e farne uno da te Link to comment
FreeMapsGiveAway Posted January 12, 2012 Share Posted January 12, 2012 uppato su megaupload http://www.megaupload.com/?d=BGPPGSWB Link to comment
HunT Posted January 12, 2012 Share Posted January 12, 2012 Dio le fa e poi le accoppia . . . le merdacce Subaru presumo sia no goku o unitex o altra merda. Link to comment
Paper Posted January 12, 2012 Share Posted January 12, 2012 Dio le fa e poi le accoppia . . . le merdacce Subaru presumo sia no goku o unitex o altra merda. LoL... almeno cambia aggettivo <3 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now