22.04.2010, 12:00
Code:
//max buttons that can be created. #define MAX_BUTTONS 50 //this is the distance max for detecting buttons. If the player is at this //distance, or less, of a button, he will press this button. #define MAX_DISTANCE 1.3 //this is the object modelid used for buttons. //i'm asking for nice objects, if you know some that can be used as buttons, tell me! #define OBJECT 2961 //comment this line to disable the sound, or change the number for another sound //don't forget that you can do whatever you want in OnPlayerPressButton #define SOUND 1083