Background Help.
#1

Well I've asked this before but people aren't able to give me a solution, so I'm asking again hoping that it will be solved this time. The problem I'm having is simple, I have an old system, where players can look at the skins, OnRequestClass and well there is no vehicles in the background and all that, but after when I spawned, and I also have a /changeteam command, which makes the player go back to Class Section, and when they are browsing the skin which I spawned earlier, they will be able to see "Cars" and "Players" running about in the background which Firstly, when you just connected, they won't be any.....

Well of course I tried SetPlayerVirtualWorld. Well, OnPlayerRequestClass, the virtual world is set to 1. Then at OnPlayerSpawn its set to 0. So guys any idea how to remove the background cars and players running about when I changeteam?

I'm tried many variations but to no appeal. Such as OnPlayerConnect and all that. Including through the command, /changeteam setting the virtual world differently. Still same result. I need a breakthrough for this. +REP for those who help me crack this case. Thanks.
Reply
#2

Changing the view point maybe? Or changing the virtual world in OnPlayerSpawn to 2 will maybe solve it? These are my ideas...
Reply
#3

I tried that, but after couple of respawning, the same problem persists.
Reply
#4

Combine with Virtual Worlds / Camera Postions (Player,Vehicle), and PutPlayerInVehicle, and don't forget to remove userid from exsist vehicle!
Reply
#5

Sorry, I can't get you. How shall I do that? Combine all of them? What does Camera Position have to do with this?
Reply
#6

BUMP.

Any ideas anyone?
Reply
#7

Have you tried putting the SetPlayerVirtualWorld.... Before the command?
Reply
#8

I agree - simply use SetPlayerVirtualWorld BEFORE sending back the player to class selection, instead of doing it inside OnPlayerRequestClass (which is way too late anyways BTW, it should be called right before OnPlayerSpawn AIUI).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)