Posts: 197
Threads: 12
Joined: Oct 2015
Reputation:
0
how can i check if player is using sprunk or candy machine? would checking the players animation in OnPlayerUpdate work?
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
Well I'm not sure but you had to press 'F' to use them, maybe (not sure) you can check their pos when they press F, OPU for such small stuff seems an overkill to me when I can simply remove default ones, place ones that can behave as I wish !
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Agree with Abagail that include sucks balls also going to point out the include he provided also sucks.
1.) pvars personally I never use any code with pvars
2.) It uses a loop with IsPlayerInRangeOfPoint() yet uses the streamer plugin should be dynamic areas
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Well I took a look if you are using dynamic areas you can completely eliminate the need for any looping because all you need to is save the dynamic area id. Then simply check if the player is still in that area when a key is pressed then you have loop free dynamic area checking good right ?