Jump to content

Dead CJ Skin All over the place near x=0 y=0 z=0


djaa2807

Recommended Posts

Posted

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 ?

Posted
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!

Posted

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 ) 

Posted
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 .

Posted

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 

Posted (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! :fadein:

What do you suggest? Removing the abseil script or using a script to delete the dead cjs?

@MIKI785 Thanks!

Edited by Guest

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...