Jump to content

cameraMatrix while downloading


Edikosh998

Recommended Posts

Posted

Hi, as the titles says, I'd like to know how can I set a cameraMatrix to a player who is downloading when he joins the server.

WRS( World Racing Server) [server] = 8%

Posted

i have this. maybe can help you

function camera () 
    fadeCamera(source, true, 5) 
     setCameraMatrix(source, 2003, -881, 130, 1832, -1249, 64) 
end 
addEventHandler("onPlayerJoin", getRootElement(), camera) 

serverside

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
addEventHandler("onClientPlayerJoin", resourceRoot,  
function () 
    if isTransferBoxActive() then 
        setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
    end 
end 
) 

Please do not PM me with scripting related question nor support, use the forums instead.

Posted
addEventHandler("onClientPlayerJoin", resourceRoot,  
function () 
    if isTransferBoxActive() then 
        setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
    end 
end 
) 

It's wrong.

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted
addEventHandler("onClientPlayerJoin", resourceRoot,  
function () 
    if isTransferBoxActive() then 
        setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
    end 
end 
) 

Just use it with onPlayerJoin event and without 'if isTransferBoxActive() then' condition.

Make sure to include element in setCameraMatrix while server side and remove an 'end'.

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