Wrong virtualworld at spawn..
#1

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.
Reply
#2

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
Reply
#3

I know it... im boring to set vw every second.. they have to enter then exit their house all the time yes.. but they will probably leave cuz of that theres not something to change in the gm ?
Reply
#4

put under (OnPlayerSpawn)
Код:
SetPlayerVirtualWorld(playerid, 0);
Reply
#5

I did that.... still doesnt work they spawn outside with wrong vw.. so they cant see cars etc... help or maybe how can I make them spawn inside then when they will leave virtual world will be ok,...
Reply
#6

Make a timer that sets your virtual world after 3 seconds at your spawn
Reply
#7

It will show that in chat or something like that ?
and how I do that ..?
Reply
#8

helpp please
Reply
#9

top of script:


Quote:

forward vwsetter();

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;
}

Reply
#10

it will be after how many second ? and it will appear in the chat all the time ? or.. no ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)