Jump to content

spawnPlayer on an interior...


12p

Recommended Posts

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
Link to comment

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