Wrong virtualworld at spawn.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wrong virtualworld at spawn.. (
/showthread.php?tid=217381)
Wrong virtualworld at spawn.. -
vernz - 27.01.2011
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.
Re: Wrong virtualworld at spawn.. -
randomkid88 - 27.01.2011
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
Re : Wrong virtualworld at spawn.. -
vernz - 27.01.2011
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 ?
Re: Wrong virtualworld at spawn.. -
darkknight123 - 27.01.2011
put under (OnPlayerSpawn)
Код:
SetPlayerVirtualWorld(playerid, 0);
Re : Wrong virtualworld at spawn.. -
vernz - 27.01.2011
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,...
Re: Wrong virtualworld at spawn.. -
bartje01 - 27.01.2011
Make a timer that sets your virtual world after 3 seconds at your spawn
Re : Wrong virtualworld at spawn.. -
vernz - 27.01.2011
It will show that in chat or something like that ?
and how I do that ..?
Re : Wrong virtualworld at spawn.. -
vernz - 28.01.2011
helpp please
Re: Wrong virtualworld at spawn.. -
Baboon - 28.01.2011
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;
}
|
Re : Wrong virtualworld at spawn.. -
vernz - 28.01.2011
it will be after how many second ? and it will appear in the chat all the time ? or.. no ?