djaa2807 Posted March 24, 2013 Share Posted March 24, 2013 Here's screenshots of the problem: http://imgr.us/images/ku262k8pv5yy8omuvlwr.png http://imgr.us/images/gpdkfbp73e6beqeh0f9.png As you can see dead CJs are all over the place near the 0 0 0 map position, i know players spawn at 0 0 0 (under the ground) when they join, and i also know that they fall and reappear at the location of dead CJs. I also made a small modification to the underground point 0 0 -2 to catch players from falling and reappearing there and it works. But the dead CJ skins problem seems irrelevant of this! Does anyone know what causes this and how i can fix it using a simple script ? Link to comment
PaiN^ Posted March 24, 2013 Share Posted March 24, 2013 It could be another resource or a map or modified gamemode .. Link to comment
djaa2807 Posted March 24, 2013 Author Share Posted March 24, 2013 It could be another resource or a map or modified gamemode .. I doubt it's the gamemode, anybody has any scripting idea to remove those dead bodies ? How to i delete those elements? These are not players! Link to comment
PaiN^ Posted March 24, 2013 Share Posted March 24, 2013 This may do it : setTimer ( function ( ) for i,Peds in ipairs ( getElemetsByTpe ( 'ped' ) do for i,Players in ipairs ( getElemetsByTpe ( 'player' ) if Peds ~= Players then destroyElement ( Peds ) end end end end, 50, 0 ) Link to comment
iPrestege Posted March 24, 2013 Share Posted March 24, 2013 This may do it : setTimer ( function ( ) for i,Peds in ipairs ( getElemetsByTpe ( 'ped' ) do for i,Players in ipairs ( getElemetsByTpe ( 'player' ) if Peds ~= Players then destroyElement ( Peds ) end end end end, 50, 0 ) Make no sense and am sure you are kidding . Link to comment
MIKI785 Posted March 24, 2013 Share Posted March 24, 2013 Question is if they are server or client elements. If server side, try this: for i, ped in ipairs(getElementsByType("ped")) do if isPedDead(ped) then destroyElement(ped) end end Link to comment
Castillo Posted March 24, 2013 Share Posted March 24, 2013 @djaa: You are using "abseil" resource? if so, that's the cause. Link to comment
djaa2807 Posted March 24, 2013 Author Share Posted March 24, 2013 (edited) @djaa: You are using "abseil" resource? if so, that's the cause. yEP i have abseil! Wow so all this time it was abseil!! Thanks Solidsnake! What do you suggest? Removing the abseil script or using a script to delete the dead cjs? @MIKI785 Thanks! Edited March 24, 2013 by Guest Link to comment
Castillo Posted March 24, 2013 Share Posted March 24, 2013 Well, you could try fixing it. Link to comment
djaa2807 Posted March 24, 2013 Author Share Posted March 24, 2013 Alright then, i will try and fix the abseil mod as soon as i get some free time 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