public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER) { KillTimer(.... } return 1;}