auto enter & exit on those pickups , help please
#5

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys & KEY_YES)
	{
		if(IsPlayerInRangeOfPoint(playerid, 3.0, coordinates of the pickup))
		{
			SetPlayerPos(playerid, coordinates of the place to you want the player to enter);
		}
	}

	//Now you have to find the exit coordinates

	if(newkeys & KEY_NO)
	{
		if(IsPlayerInRangeOfPoint(playerid, 3.0, coordinates of the exit place))
		{
			SetPlayerPos(playerid, coordinates of the pickup again);
		}
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)