[HELP] Need help with Interior
#1

Hello
I saw on a server one day a command "/world 1/2/3..." where you can switch between worlds.
In scripting I do believe that means switching interiors but:
-How can I switch the interior but still remain in San Andreas Outworld?
Reply
#2

With
pawn Код:
SetPlayerVirtualWorld(playerid, virtualworld)
Change the "virtualworld" to any id you like
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Reply
#3

Thank you This is good!
But is there any way to make it generate a random virtualworld between 1 - 10?
Reply
#4

PHP код:
SetPlayerVirtualWorld(playeridrandom(11)); 
This way the virtual world can be between 0 and 10. If you want a number between 1 and 10:

PHP код:
Start:
    new 
rand random(11);
    if(
rand == 0) { goto Start; }
    
SetPlayerVirtualWorld(playeridrand); 
Reply
#5

Thanks You 2 are great! Thanks for all the help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)