SA-MP Forums Archive
Lockers Virtual World 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: Lockers Virtual World Help (/showthread.php?tid=442895)



Lockers Virtual World Help - yaron0600 - 09.06.2013

How can I do that inofrangepoint on virtual World : 6065 and interior 1 here ?

Код:
CMD:boston(playerid, params[])
{
    if(PlayerInfo[playerid][pFMember] == 1)
 	{
  		if(IsPlayerInRangeOfPoint(playerid, 4.0, -517.86, 306.36, 909.53))
    	{
     		ShowPlayerDialog(playerid, DIALOG_BOSTONS, DIALOG_STYLE_LIST, "El Bostons Lockers", "Deagle\nMP5\nM4-500Bullets\nAK-47-500Bullets\nShotgun\nRifle\nVest", "Select", "Cancel");
     	}
      	else
		{
  			SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your El Bostons lockers.");
 		}
  	}
	return 1;
}



Re: Lockers Virtual World Help - Aly - 09.06.2013

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -517.86, 306.36, 909.53) && GetPlayerVirtualWorld(playerid) == 6065 && GetPlayerInterior(playerid) == 1)