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



Biz help - Wezley - 18.09.2011

I need help with this

I have a biz system but idk how how make it to where 2 biz's with the same interior can exit in at 2 points I tried changing the VW but no luck the biz system is a GF edit here is the /exit command for it.



Код:
			for(new i = 0; i <  sizeof(BizzInfo); i++)
			{
			   
			    if (IsAtBizExit(playerid))
			    {
				if(IsPlayerInRangeOfPoint(playerid,3,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ])) //businesses
				{
					SetPlayerInterior(playerid,0);
					SetPlayerVirtualWorld(playerid, 0);
					PlayerInfo[playerid][pInt] = 0;
					SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
					return 1;
				}
			}
			}
anyone know how I can do this? please help!


Re: Biz help - Jack_Leslie - 19.09.2011

Use a && statement.
Код:
if(IsPlayerInRangeOfPoint(playerid, range, x, y, z) && GetPlayerVirtualWorld(playerid) == vw)



Re: Biz help - Wezley - 19.09.2011

Код:
	if(IsPlayerInRangeOfPoint(playerid,3,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ])&& GetPlayerVirtualWorld(playerid) == BizzInfo[i][bId])
didn't work.... :/