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



Virtual Worlds - kukars22 - 22.11.2009

Hello here is my script
Код:
        if(GetPlayerVirtualWorld(playerid) != 2)
  			{
			if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
			{
			  GameTextForPlayer(playerid, "~w~ZOMG!", 5000, 1);
			  SetPlayerInterior(playerid,0);
			  PlayerInfo[playerid][pInt] = 0;
			  SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,981.6595,-1161.3964,25.0962);
			}
			}
How to make it work ?


Re: Virtual Worlds - dice7 - 22.11.2009

By going to that point and not being in vw 2


Re: Virtual Worlds - kukars22 - 22.11.2009

i'm using same place but diferent VW and i need to make /exit like in diferent places. So if player is in VW 2 and His position is 2305.688964,-16.088100,26.749599 then he will exit at ...

Код:
            if(strcmp(cmd, "/exit", true) == 0)
	        {
            if(GetPlayerVirtualWorld(playerid) != 2)
  			{
			if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
			{
			  GameTextForPlayer(playerid, "~w~Sveicinati SEB Banka", 5000, 1);
			  SetPlayerInterior(playerid,0);
			  PlayerInfo[playerid][pInt] = 0;
			  SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,981.6595,-1161.3964,25.0962);
			}
			}
			if(GetPlayerVirtualWorld(playerid) != 3)
  			{
			if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
			{
			  GameTextForPlayer(playerid, "~w~Sveicinati SwedBank", 5000, 1);
			  SetPlayerInterior(playerid,0);
			  PlayerInfo[playerid][pInt] = 0;
			  SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,1112.0267,-1370.2819,13.9844);
			}
			}
			if(GetPlayerVirtualWorld(playerid) != 4)
  			{
			if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
			{
			  GameTextForPlayer(playerid, "~w~Sveicinati Parex Banka", 5000, 1);
			  SetPlayerInterior(playerid,0);
			  PlayerInfo[playerid][pInt] = 0;
			  SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,1270.8789,-1667.8645,19.7344);
			}
			}
			if(GetPlayerVirtualWorld(playerid) != 5)
  			{
			if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
			{
			  GameTextForPlayer(playerid, "~w~Sveicinati GE Money Banka", 5000, 1);
			  SetPlayerInterior(playerid,0);
			  PlayerInfo[playerid][pInt] = 0;
			  SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,1720.2047,-1740.9485,13.5469);
			}
			}