01.04.2011, 13:18
It ain`t that hard ... look:
pawn Код:
if ((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z) // Change X, Y, Z with your house entrance coordinates
{
// the rest of the code here...
}
}