21.09.2011, 20:01
The best sollution for it is OnPlayerKeyStateChange. Just place your code to enter building into OnPlayerKeyState change after some key pressed. For example:
But if you wan't to make it other way tell me. I will try to help you just think for a better sollution
edit://
When you're editing your post type edit:// and then tell us you fixed it.
pawn Код:
if(newkeys & KEY_SPRINT)
{
// Your code to enter an interior.
}
edit://
When you're editing your post type edit:// and then tell us you fixed it.