16.08.2012, 01:47
Just put it under the same place. This is an example:
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, HousePosX, HousePosY, HousePosZ, 5))
{
//do Something if at enter pos
}
else if(IsPlayerInRangeOfPoint(playerid, HouseExitPosX, HouseExitPosY, HouseExitPosZ, 5))
{
//Do something if at exit pos
}
}