Car Grouping And Acess
#1

How Could I Set One Up For Pepole Just To Hop Into?
_________________________________________________
Код:
public IsAtFishPlace(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	  if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
		{//Fishplace at the bigwheel
		  return 1;
		}
		else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
		{//Fishplace at the bigwheel
		  return 1;
		}
		else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
		{//Fishplace at the bigwheel
		  return 1;
		}
		else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
		{//Fishplace at the bigwheel
		  return 1;
		}
		else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
		{//Fishplace at the bigwheel
		  return 1;
		}
	}
	return 0;
}

public IsAtCookPlace(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	  if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
	  {//Cluckin Bell
	    return 1;
	  }
	  else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
		{//Burgershot
		  return 1;
		}
		else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
		{//Well Stacked Pizza
		  return 1;
		}
	}
	return 0;
}

public IsAtBar(playerid)
{
  if(IsPlayerConnected(playerid))
	{
		if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
		{//In grove street bar (with girlfriend), and in Havanna
		  return 1;
		}
		else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734))
		{//PIG Pen
		  return 1;
		}
 		else if(PlayerToPoint(4.0,playerid,968.7739,-46.6145,1001.1172) || PlayerToPoint(10.0,playerid,968.7739,-46.6145,1001.1172))
		{//The Unforgiven HQ
		  return 1;
		}
 		else if(PlayerToPoint(4.0,playerid,1898.1587,-1862.3324,13.5736) || PlayerToPoint(10.0,playerid,968.7739,-46.6145,1001.1172))
		{//iLL Vill HQ
		  return 1;
		}
 		else if(PlayerToPoint(4.0,playerid,252.1475,-56.2830,1.5703))
		{//iLL Vill HQ
		  return 1;
		}
		else if(PlayerToPoint(4.0,playerid,-791.016,512.249,1336.41) || PlayerToPoint(10.0,playerid,-799.122,520.988,1336.41))
		{//Nortenos House
		  return 1;
		}
	}
	return 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)