Jump to content

spawnPlayer on an interior...


12p

Recommended Posts

Posted (edited)

Hi to everybody again :P. 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 by Guest
Posted
  
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)!

Posted

Let me try...

EDIT: No, it doesn't solve the problem.

EDIT2: NO, problem solved! :D thanks again varez LOL! What could I do without varez :mrgreen:.

Posted

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

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