Jump to content

Simple all-day problems over here!(:


Maurize

Recommended Posts

Posted

So let's think about removing the whole san andreas map and create a new map... arround 40 ground "plates"

  
addEventHandler( "onClientResourceStart", resourceRoot, 
function() 
    setWaterLevel( 50 ) 
    createWater( -2998, -2998, 50, 2998, -2998, 50, -2998, 2998, 50, 2998, 2998, 50 ) 
    setFarClipDistance( 99 ) 
for i = 550, 20000 do 
    removeWorldModel( i, 10000, 0, 0, 0 ) 
    end 
for i, v in ipairs( landScape ) do 
    local landPart = createObject( 4247, v[1], v[2], 55, 0, 0, 0 ) 
    setElementDoubleSided( landPart, true ) 
    end 
for i, v in ipairs( landBuild ) do 
    local landPart = createObject( v[1], v[2], v[3], v[4], 0, 0, v[5] ) 
    setElementDoubleSided( landPart, true ) 
    end 
for i, v in ipairs( landCliff ) do 
    local landPart = createObject( 4585, v[1], v[2], 36.1, 90, 0, v[3] ) 
    setElementDoubleSided( landPart, true ) 
    end 
end ) 
  

Now the problem: Sometimes when I join my server, there ain't any ground plates, but waterlevel is increased an world models are removed...

Somebody an idea?

EDIT// If this bug appears & i restart mta:sa the bug is gone and everthing is normal? Means maybe its up to client or something?

Posted

Maybe if you create them with a delay?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
  
addEventHandler( "onClientResourceStart", resourceRoot, 
function() 
    setTimer( 
function() 
    setWaterLevel( 50 ) 
    createWater( -2998, -2998, 50, 2998, -2998, 50, -2998, 2998, 50, 2998, 2998, 50 ) 
for i = 550, 20000 do 
    removeWorldModel( i, 10000, 0, 0, 0 ) 
    end 
for i, v in ipairs( landScape ) do 
    local landPart = createObject( 4247, v[1], v[2], 55, 0, 0, 0 ) 
    setElementDoubleSided( landPart, true ) 
    end 
for i, v in ipairs( landBuild ) do 
    local landPart = createObject( v[1], v[2], v[3], v[4], 0, 0, v[5] ) 
    setElementDoubleSided( landPart, true ) 
        end 
    end, 1000, 1 ) 
    setFarClipDistance( 100 ) 
end ) 
  

still the same shit :/

Posted

Make sure users spawn 5 seconds after they join, maybe even 10. Experiment with it. It's happened where i've flown a plane, and then all of a sudden, a tree rendered in front of me and i blew up -.-

Posted

That script only has a delay time of 1 second, make it 5 or more.

"First they ignore you, then they laugh at you, then they fight you, then you win."

- Mahatma Gandhi (1869-1948)

Posted
That script only has a delay time of 1 second, make it 5 or more.

That's what I meant, as 1 second timer is not much of a delay.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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