Sora Posted June 12, 2012 Share Posted June 12, 2012 (edited) hey guys , i have errors with arezu's script when player(s) playing in training after he(they) died other players see him(them) burning when they playing and got a high lag screenshots : the resource : https://community.multitheftauto.com/ind ... ls&id=3667 needing the solution Edited July 3, 2012 by Guest Link to comment
Sora Posted June 12, 2012 Author Share Posted June 12, 2012 Uhm, try to use default race. thank you so much for response but error isn't from the race script , this happening only when car blown and got a high lag Link to comment
GTX Posted June 12, 2012 Share Posted June 12, 2012 Then don't blow it. But I think it isn't a problem in a respawn script. Link to comment
arezu Posted June 12, 2012 Share Posted June 12, 2012 It worked in my server all the time, but its old so, better way instead of setElementAlpha which i do there, is to setElementDimension for the "training" player. Link to comment
Sora Posted June 14, 2012 Author Share Posted June 14, 2012 arezu do you mean this file ? visibility.lua and if you mean it then what i should do with this ? because i changed setElementAlpha to setElementDimension and the script spawning who press space to the sea i think because script set his Dimension to "0" addEventHandler("onClientRender", getRootElement(), function() local player = getElementsByType("player") for i = 1, #player do if(getElementData(player[i], "respawn.playing"))then local alpha = 0 if(player[i] == getLocalPlayer())then alpha = getElementData(player[i], "race.alpha") or 255 end setElementAlpha(player[i], alpha) local vehicle = getPedOccupiedVehicle(player[i]) if(vehicle ~= false)then setElementAlpha(vehicle, alpha) end end end end) Link to comment
Sora Posted July 3, 2012 Author Share Posted July 3, 2012 arezudo you mean this file ? visibility.lua and if you mean it then what i should do with this ? because i changed setElementAlpha to setElementDimension and the script spawning who press space to the sea i think because script set his Dimension to "0" addEventHandler("onClientRender", getRootElement(), function() local player = getElementsByType("player") for i = 1, #player do if(getElementData(player[i], "respawn.playing"))then local alpha = 0 if(player[i] == getLocalPlayer())then alpha = getElementData(player[i], "race.alpha") or 255 end setElementAlpha(player[i], alpha) local vehicle = getPedOccupiedVehicle(player[i]) if(vehicle ~= false)then setElementAlpha(vehicle, alpha) end end end end) i fixeed it , thanks arezu ^^ addEventHandler("onClientRender", getRootElement(), function() local player = getElementsByType("player") for i = 1, #player do if(getElementData(player[i], "respawn.playing"))then local alpha = 0 if(player[i] == getLocalPlayer())then alpha = getElementData(player[i], "race.alpha") or 255 end setElementAlpha (player[i], alpha) local vehicle = getPedOccupiedVehicle(player[i]) if(vehicle ~= false)then setElementDimension(vehicle, 999) end end end end) 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