30.12.2010, 08:46
Take this and enter your system / codes:
It checks if you pressed F and you are not in a car, then it works.
It checks if you pressed F and you are not in a car, then it works.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!IsPlayerInAnyVehicle(playerid) && newkeys & KEY_SECONDARY_ATTACK)
{
/* Your house system code should be here */
}
return 1;
}