Jump to content

xShocKz

Members
  • Posts

    375
  • Joined

  • Last visited

Everything posted by xShocKz

  1. ci volevo io per attivare sto forum? siete inutili
  2. showroom no requestroom, ask map to deadangel or rafinha, i think the player cant give you that map
  3. volevo sapere come aumentare la distanza per far attivare il carfade lo script pvo: function fadeCars() local you = getPedOccupiedVehicle(getLocalPlayer()) if you then youx, youy, youz = getElementPosition ( you ) else return end for i,v in ipairs(getElementsByType("player")) do local veh = getPedOccupiedVehicle(v) if (veh) and (you) then local othersx, othersy, othersz = getElementPosition ( veh ) if not (you == veh) then local distance = getDistanceBetweenPoints3D ( youx, youy, youz, othersx, othersy, othersz ) if (tonumber(distance) < 11) then smoothdistance = distance * 15 setElementAlpha ( veh, smoothdistance ) if not (getElementModel(veh) == 441 or getElementModel(veh) == 464 or getElementModel(veh) == 501 or getElementModel(veh) == 465 or getElementModel(veh) == 564 or getElementModel(veh) == 594) then setElementAlpha ( v, smoothdistance ) else setElementAlpha(v,0) end elseif (tonumber(distance) > 9) then setElementAlpha ( veh, 250 ) if not (getElementModel(veh) == 441 or getElementModel(veh) == 464 or getElementModel(veh) == 501 or getElementModel(veh) == 465 or getElementModel(veh) == 564 or getElementModel(veh) == 594) then setElementAlpha ( v,250) else setElementAlpha(v,0) end end end end end end bindKey("F4","down", function(key,state) if (key == "F4") and (state == "down") then if (carFadeOn == true) then carFadeOn = false removeEventHandler ( "onClientRender", getRootElement(), fadeCars ) for i,v in ipairs(getElementsByType("player")) do veh = getPedOccupiedVehicle(v) if (veh) then setElementAlpha ( veh, 255 ) if not (getElementModel(veh) == 441) or (getElementModel(veh) == 464) or (getElementModel(veh) == 501) or (getElementModel(veh) == 465) or (getElementModel(veh) == 564 or getElementModel(veh) == 594) then setElementAlpha (v,255) end end end outputChatBox(" #DB8181[CARFADE]: #0080FFCarfade #929292is #0080FFDisabled#929292!",255,140,0,true) else addEventHandler("onClientRender",getRootElement(),fadeCars) carFadeOn = true outputChatBox(" #DB8181[CARFADE]: #0080FFCarfade #929292is #0080FFEnabled#929292!",255,140,0,true) end end end) reply.
  4. Here you can see the map folder with: -1 meta.xml -1 File.map -and some scripts not required Now control the Meta.xml Make sure each map has it. bb
  5. nice for v2, but learn to record videos for maps <.
  6. i dont like :\ is like oldshool maps..
  7. quando giovanni capirà che è colpa del server se la race non và, e che gli admin non possono eliminare resources
  8. ah ok quindi non mi rimane che trovare chi scambia mappe per carfade...
  9. da un occhiata a questo allora, manca il meta... me l'ha passato un amico http://www.mediafire.com/?1rg9xr1evrwl1db
  10. playable... put more deco... not only rocks and markers
  11. 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 )
  12. ci siamo ma non superiamo i 100 ... poi ci sono i tardi che sono assai.
  13. shit map...you create map to much and you're still at these levels.
  14. mta è poco conosciuto... anche se la community sta aumentando parecchio...
  15. eh si, sei l'unico scripter italiano ormai .-. io me la cavo appena appena con l'editare pannelli ._.
  16. but after you do not understand.
×
×
  • Create New...