24.02.2018, 11:00
Please post just codes on OnPlayerStateChange under u check newstate == PLAYER_STATE_ONFOOT or newstate == 1.
Then, post how u define the vars that u use in ur code.
Then, post how u define the vars that u use in ur code.