SA-MP Forums Archive
VWORLDS - 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: VWORLDS (/showthread.php?tid=88639)



VWORLDS - argon - 27.07.2009

How to create a virtual world and acces it with a command? And to leave it just do /main


Re: VWORLDS - ronyx69 - 27.07.2009

This under OnPlayerCommandText:

Код:
if(strcmp(cmdtext, "/world", true, 6) == 0)
	{
	SetPlayerVirtualWorld(playerid, 1);
    return 1;
	}
if(strcmp(cmdtext, "/main", true, 5) == 0)
	{
	SetPlayerVirtualWorld(playerid, 0);
    return 1;
	}



Re: VWORLDS - argon - 28.07.2009

K thanks!