Posts: 230
Threads: 36
Joined: Dec 2010
Reputation:
0
Hi everyone, I have a little problem, when people owned a house, when they logged in the server they spawn outside of the house and they cannot see their car etc I always have to change their virtual world.. all the time it's anoying.. someone have an idea to fix it? Thanks !
Vernz.
Posts: 308
Threads: 17
Joined: Mar 2010
Reputation:
0
27.01.2011, 20:37
(
Последний раз редактировалось randomkid88; 28.01.2011 в 01:40.
)
Set the player's virtual world to 0 or whatever your main VW is when they spawn (OnPlayerSpawn). If you have this problem in game, make sure that whenever they exit their house it sets their virtual world back to 0
Posts: 1,419
Threads: 264
Joined: Jan 2009
Reputation:
0
Make a timer that sets your virtual world after 3 seconds at your spawn
Posts: 230
Threads: 36
Joined: Dec 2010
Reputation:
0
It will show that in chat or something like that ?
and how I do that ..?
Posts: 918
Threads: 125
Joined: Nov 2010
top of script:
make a timer in ongamemodeinit()
like:
Quote:
SetTimer("vwsetter",2000,true);
|
then make a new public:
Quote:
public vwsetter()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
//code of virtual world
}
return 1;
}
|
Posts: 230
Threads: 36
Joined: Dec 2010
Reputation:
0
it will be after how many second ? and it will appear in the chat all the time ? or.. no ?