Biz help
#1

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!
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)