12p Posted October 9, 2010 Posted October 9, 2010 (edited) Hi to everybody again . I have a big problem when I spawn my player on my new gamemode... It get spawned, but THE CAMERA IS FULLY DARK! Why? It's server-side (obviously, doesn't it?) if team == "gangs" then skin = math.random (102,104) spawnPlayer (source,314.24-math.random(0,2),-165.6,999.6,180,skin,6,0,"Gangs") elseif team == "army" then skinTry = math.random(0,2) if skinTry == 0 then skin = 73 elseif skinTry == 1 then skin = 179 elseif skinTry == 2 then skin = 287 end repeat until setCameraInterior (source,6) repeat until setCameraTarget (source,source) spawnPlayer (source,314.24-math.random(0,3),-165.6,999.6,180,skin,6,0,"Army") Hope you can help me to find the problem... EDIT: No debugscript errors. No camera or spawning errors get showed. EDIT2: Nothing about the "repeat until"s. Edited October 9, 2010 by Guest
dzek (varez) Posted October 9, 2010 Posted October 9, 2010 fadeCamera(source, true) ? i did not read the script Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
12p Posted October 9, 2010 Author Posted October 9, 2010 Let me try... EDIT: No, it doesn't solve the problem. EDIT2: NO, problem solved! thanks again varez LOL! What could I do without varez .
Xierra Posted October 10, 2010 Posted October 10, 2010 Simple, if fadeCamera is true, then it will fade till black, if false, it will fade out, I think. XX3 is gone. This is my new name. :3
dzek (varez) Posted October 10, 2010 Posted October 10, 2010 nope, its reverse, true = visible, false = black screen Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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