SA-MP Forums Archive
Can some1 help me about virtualworld? pls - 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)
+--- Thread: Can some1 help me about virtualworld? pls (/showthread.php?tid=298353)



Can some1 help me about virtualworld? pls - ProdrifterX - 20.11.2011

I have virtual world script like this
but when i go on . Example " /world5 "
other player can goto me.. i need script who cant other player goto me when i am in /world1-5


if (strcmp(cmdtext, "/world3", true) == 0)
{
SetPlayerVirtualWorld(playerid, 3);
return 1;
}


(thanks, soz 4 bad english)


Re: Can some1 help me about virtualworld? pls - Joshb93 - 20.11.2011

Hmm... there is no command for /world1, /world2, /world4, and /world5?


Re: Can some1 help me about virtualworld? pls - ProdrifterX - 20.11.2011

yes but this is examlple
if (strcmp(cmdtext, "/world1", true) == 0)
{
SetPlayerVirtualWorld(playerid, 1);
return 1;
}
if (strcmp(cmdtext, "/world2", true) == 0)
{
SetPlayerVirtualWorld(playerid, 2);
return 1;
}
if (strcmp(cmdtext, "/world5", true) == 0)
{
SetPlayerVirtualWorld(playerid, 5);
return 1;
}

here is and 5 world but when u go example in 5
other players can goto me..
i dont like player goto me or other when is in 5 world
only on /world0