05.05.2015, 12:44
Quote:
Oh my god, how can you code like that?! Learn to indent and use spacing!
Show your IsPlayerNearObject function. I have a feeling it takes an object ID not a model ID. Also, wouldn't a chainsaw make more sense than a knife? Also, you should use defines like WEAPON_KNIFE instead of '4', so when you come back to that code in 3 years you can understand it. I mean, you probably still would, but it helps. |
its on the post (See above)
837 is the object id for a piece of dead wood (.like a log)